]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/TextField.class.php
Finished refactoring of the FormElement class.
[timetracker.git] / WEB-INF / lib / form / TextField.class.php
index 9107c963d73177a063c76a7afc8dbaa7cb27c572..c9ffaaedfb2974b720b731ac7033d1e614c9be3f 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="")
        {
@@ -41,8 +41,8 @@ class TextField extends FormElement {
        function setAsPassword($name)   { $this->mPassword = $name;     }
        function getAsPassword()        { return $this->mPassword; }
 
-       function toStringControl() {
-               if (!$this->isEnable()) {
+       function getHtml() {
+               if (!$this->isEnabled()) {
                        $html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
                } else {