Added a comment explaining the purpose of safe functions.
[timetracker.git] / WEB-INF / lib / form / TextField.class.php
index e4d5865..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="")
        {
@@ -41,10 +41,8 @@ class TextField extends FormElement {
        function setAsPassword($name)   { $this->mPassword = $name;     }
        function getAsPassword()        { return $this->mPassword; }
 
-       function toStringControl()      {
-               if (!$this->isRenderable()) return "";
-           
-               if (!$this->isEnable()) {
+       function toStringControl() {
+               if (!$this->isEnabled()) {
                        $html = "<input name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\" readonly>\n";
                } else {