X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/aad5111d2e9f3329dc1002e897dd910a60946d6c..f5ed86434f9baa4ce4f89b2a40d35e9d5677df67:/WEB-INF/lib/form/Form.class.php diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 250f5313..0fcbd620 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -38,14 +38,13 @@ class Form { var $name = ''; // TODO: refactoring ongoing down from here. - var $mId = ""; var $error; var $debugFunction; var $mElements = array(); var $mRequest; - function __construct($formid) { - $this->name = $formid; + function __construct($formName) { + $this->name = $formName; } function setRequest(&$request) { @@ -67,12 +66,8 @@ class Form { // name // onsubmit // onreset - function setName($value) { $this->name = $value; } function getName() { return $this->name; } - function setId($value) { $this->mId = $value; } - function getId() { return $this->mId; } - function isSubmit() { if (!isset($this->mRequest)) return false; $result = false; @@ -246,9 +241,6 @@ class Form { function toStringOpenTag() { $html = "
name\""; - if ($this->mId!="") - $html .= " id=\"$this->mId\""; - $html .= ' method="post"'; // Add enctype for file upload forms.