X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=WEB-INF%2Flib%2Fform%2FHidden.class.php;h=6e59bc8e1a43b1e218a90890672e95827bc5e151;hb=ad707342d0ab5a7f6fc6ceda9ba3deb408f5ac08;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..6e59bc8e 100644
--- a/WEB-INF/lib/form/Hidden.class.php
+++ b/WEB-INF/lib/form/Hidden.class.php
@@ -27,27 +27,19 @@
// +----------------------------------------------------------------------+
import('form.FormElement');
-
+
class Hidden extends FormElement {
- var $mValue;
- var $cClassName = "Hidden";
- function Hidden($name,$value="")
- {
- $this->mName = $name;
- $this->mValue = $value;
- }
+ function __construct($name) {
+ $this->class = 'Hidden';
+ $this->name = $name;
+ }
+
+ function getHtml() {
+ if ($this->id == '') $this->id = $this->name;
- function toStringControl() {
-
- if ($this->mId=="") $this->mId = $this->mName;
-
- $html = "\n\tmName\" id=\"$this->mId\"";
-
- $html .= " value=\"".$this->getValue()."\"";
- $html .= ">";
-
- return $html;
- }
+ $html = "\n\tid\" name=\"$this->name\"";
+ $html.= ' value="'.$this->getValue().'">';
+ return $html;
+ }
}