X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/timetracker.git/blobdiff_plain/199277a2fd7258bb60c37a291d0d62e04e9c31ca..e320f1d51ffa712689c6cb2877208464395aebb2:/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 b37903cd..8bf3ecab 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -42,24 +42,19 @@ class Form { $this->name = $formName; } - // TODO: refactoring ongoing down from here. + function getElement($name) { + return $this->elements[$name]; + } - function &getElement($name) { - return $this->elements[$name]; - } - - function &getElements() { - return $this->elements; - } + function getElements() { + return $this->elements; + } + + function getName() { return $this->name; } - //// FORM element - // action - // method - GET, POST - // enctype - enctype="multipart/form-data" - // name - // onsubmit - // onreset - function getName() { return $this->name; } + // TODO: refactoring ongoing down from here. + + //// INPUT element // type = TEXT | PASSWORD | CHECKBOX | RADIO | SUBMIT | RESET | FILE | HIDDEN | IMAGE | BUTTON