Some further refactoring in form classes.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index 236fdb4..905b269 100644 (file)
@@ -29,7 +29,7 @@
 import('form.FormElement');
        
 class Submit extends FormElement {
-       var $cClassName = "Submit";
+       var $class = 'Submit';
 
        function __construct($name,$value="")
        {
@@ -37,14 +37,14 @@ class Submit extends FormElement {
                $this->value = $value;
        }
 
-       function toStringControl() {
+       function getHtml() {
            
            if ($this->id=="") $this->id = $this->name;
            
                $html = "\n\t<input";
                $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
                
-               if (!$this->isEnable()) {
+               if (!$this->isEnabled()) {
                        $html .= " disabled=\"true\"";
                }