Some further refactoring in form classes.
[timetracker.git] / WEB-INF / lib / form / Hidden.class.php
index 0105de1..e06466e 100644 (file)
 import('form.FormElement');
        
 class Hidden extends FormElement {
-    var $mValue;
-    var $cClassName    = "Hidden";
+    var $class = 'Hidden';
 
        function __construct($name,$value="")
        {
-               $this->name                     = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
 
-       function toStringControl()      {
+       function getHtml()      {
            
            if ($this->id=="") $this->id = $this->name;