Some more refactoring in Form classes.
[timetracker.git] / WEB-INF / lib / form / TextArea.class.php
index 9c77917..66101b9 100644 (file)
 import('form.FormElement');
        
 class TextArea extends FormElement {
-    var $mPassword     = false;
     var $mColumns      = "";
     var $mRows         = "";
-    var $class = 'TextArea';
     var $mOnKeyPress   = "";
 
-       function __construct($name,$value="")
-       {
-               $this->name = $name;
-               $this->value = $value;
-       }
+  function __construct($name, $value = '')
+  {
+    $this->class = 'TextArea';
+    $this->name = $name;
+    $this->value = $value;
+  }
        
        function setColumns($value)     { $this->mColumns = $value;     }
        function getColumns()   { return $this->mColumns; }
@@ -47,7 +46,7 @@ class TextArea extends FormElement {
        function setRows($value)        { $this->mRows = $value;        }
        function getRows()      { return $this->mRows; }
        
-       function toStringControl() {
+       function getHtml() {
     
            if ($this->id=="") $this->id = $this->mName;