X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/33399ff6a8bdfe9b989810dafe9c4dbf3cf3b685..61efd9d023ae34c1290ef2e1ae25829c509caaee:/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..e06466e1 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() { + function getHtml() { - 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 .= ">";