Some renaming.
[timetracker.git] / WEB-INF / lib / form / Hidden.class.php
index 3530f1b..57ed9aa 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()      {
            
-           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 .= ">";