X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685..4a605a698d07ecdc11e11aa8921485ace261cdba:/WEB-INF/lib/form/Hidden.class.php diff --git a/WEB-INF/lib/form/Hidden.class.php b/WEB-INF/lib/form/Hidden.class.php index 3530f1ba..cddb223a 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"; - 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 .= ">";