Introduced PasswordField.class.php to keep things simple.
[timetracker.git] / WEB-INF / lib / form / TextArea.class.php
index 89eef4e..728f462 100644 (file)
@@ -32,7 +32,8 @@ class TextArea extends FormElement {
     var $mPassword     = false;
     var $mColumns      = "";
     var $mRows         = "";
-    var $cClassName            = "TextArea";
+    var $class = 'TextArea';
+    var $mOnKeyPress   = "";
 
        function __construct($name,$value="")
        {
@@ -46,9 +47,8 @@ class TextArea extends FormElement {
        function setRows($value)        { $this->mRows = $value;        }
        function getRows()      { return $this->mRows; }
        
-       function toStringControl()      {
-               if (!$this->isRenderable()) return "";
-           
+       function getHtml() {
+    
            if ($this->id=="") $this->id = $this->mName;
            
            $js_maxlen = "";
@@ -69,8 +69,8 @@ class TextArea extends FormElement {
                        $html .= " maxlength=\"$this->max_length\"";
                }
 
-               if ($this->mStyle!="")
-                  $html .= " style=\"$this->mStyle\"";
+               if ($this->style!="")
+                  $html .= " style=\"$this->style\"";
 
                if ($this->mOnKeyPress) {
                        $html .= " onkeypress=\"$this->mOnKeyPress\"";