From e320f1d51ffa712689c6cb2877208464395aebb2 Mon Sep 17 00:00:00 2001 From: anuko Date: Thu, 16 Feb 2017 21:16:17 +0000 Subject: [PATCH] Refactoring - removed reference return types from a couple of functions to keep things simple. --- WEB-INF/lib/form/Form.class.php | 27 +++++++++++---------------- WEB-INF/templates/footer.tpl | 2 +- 2 files changed, 12 insertions(+), 17 deletions(-) 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} -- 2.39.5