X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FHidden.class.php;h=57ed9aa2440f2b2a3e9a90bb593f74b18ee16e56;hb=ac5189157ef60820dd125400baee9f408a9ba2ea;hp=3530f1baf419437234b0a2b17c377abf83efbac0;hpb=33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685;p=timetracker.git diff --git a/WEB-INF/lib/form/Hidden.class.php b/WEB-INF/lib/form/Hidden.class.php index 3530f1ba..57ed9aa2 100644 --- a/WEB-INF/lib/form/Hidden.class.php +++ b/WEB-INF/lib/form/Hidden.class.php @@ -29,21 +29,20 @@ 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\tmName\" id=\"$this->mId\""; + $html .= " type=\"hidden\" name=\"$this->name\" id=\"$this->id\""; $html .= " value=\"".$this->getValue()."\""; $html .= ">";