From: anuko Date: Thu, 16 Feb 2017 21:16:17 +0000 (+0000) Subject: Refactoring - removed reference return types from a couple of functions to keep thing... X-Git-Tag: timetracker_1.19-1~1566 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e320f1d51ffa712689c6cb2877208464395aebb2;p=timetracker.git Refactoring - removed reference return types from a couple of functions to keep things simple. --- 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 diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index fe95f105..6714afef 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.10.38.3586 | Copyright © Anuko | +  Anuko Time Tracker 1.10.38.3587 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve}