Further refactoring of the FormElement class to simplify things.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index 236fdb4..947b368 100644 (file)
@@ -29,7 +29,7 @@
 import('form.FormElement');
        
 class Submit extends FormElement {
-       var $cClassName = "Submit";
+       var $class = 'Submit';
 
        function __construct($name,$value="")
        {
@@ -44,7 +44,7 @@ class Submit extends FormElement {
                $html = "\n\t<input";
                $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
                
-               if (!$this->isEnable()) {
+               if (!$this->isEnabled()) {
                        $html .= " disabled=\"true\"";
                }