]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Hidden.class.php
Finished refactoring of the FormElement class.
[timetracker.git] / WEB-INF / lib / form / Hidden.class.php
index 3530f1baf419437234b0a2b17c377abf83efbac0..e06466e1f1700f0219fb44c597142582b303a3dc 100644 (file)
 import('form.FormElement');
        
 class Hidden extends FormElement {
-    var $mValue;
-    var $cClassName    = "Hidden";
+    var $class = 'Hidden';
 
-       function Hidden($name,$value="")
+       function __construct($name,$value="")
        {
-               $this->mName                    = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
 
-       function toStringControl()      {
+       function getHtml()      {
            
-           if ($this->mId=="") $this->mId = $this->mName;
+           if ($this->id=="") $this->id = $this->name;
            
                $html = "\n\t<input";
-               $html .= " type=\"hidden\" name=\"$this->mName\" id=\"$this->mId\"";
+               $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\"";
                
                $html .= " value=\"".$this->getValue()."\"";
                $html .= ">";