Refactoring - removed reference return types from a couple of functions to keep thing...
[timetracker.git] / WEB-INF / lib / form / Form.class.php
index b37903c..8bf3eca 100644 (file)
@@ -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