Further refactoring of the FormElement class to simplify things.
[timetracker.git] / WEB-INF / lib / form / TextField.class.php
index 9107c96..d7e38ae 100644 (file)
@@ -30,7 +30,7 @@ import('form.FormElement');
        
 class TextField extends FormElement {
     var $mPassword     = false;
-    var $cClassName            = "TextField";
+    var $class = 'TextField';
 
        function __construct($name,$value="")
        {
@@ -42,7 +42,7 @@ class TextField extends FormElement {
        function getAsPassword()        { return $this->mPassword; }
 
        function toStringControl() {
-               if (!$this->isEnable()) {
+               if (!$this->isEnabled()) {
                        $html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
                } else {