]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Hidden.class.php
Ongoing refactoring of form controls.
[timetracker.git] / WEB-INF / lib / form / Hidden.class.php
index 84837467c2c82d82a8f6d90a9ecbce2e1c8db51c..0105de15b5df1366e57cd118adb5b797dbc48a7c 100644 (file)
@@ -34,16 +34,16 @@ class Hidden extends FormElement {
 
        function __construct($name,$value="")
        {
-               $this->mName                    = $name;
+               $this->name                     = $name;
                $this->mValue                   = $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 .= ">";