]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Form.class.php
More refactoring.
[timetracker.git] / WEB-INF / lib / form / Form.class.php
index 250f5313ccfda1a6ff2201fedba90b2f06cb7d0d..0fcbd6208e1fc504ee98a0efb587089be9cb60b7 100644 (file)
@@ -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 = "<form name=\"$this->name\"";
         
-        if ($this->mId!="") 
-            $html .= " id=\"$this->mId\"";
-            
         $html .= ' method="post"';
         
         // Add enctype for file upload forms.