]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Submit.class.php
Refactoring - removed not used default parameters from constructors.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index c6c917ed0dbaa002e82174f4e65d9f2f2104116f..35eb6df3df54f9bfe5a0ea1577b0903ff79d97f0 100644 (file)
 import('form.FormElement');
        
 class Submit extends FormElement {
-       var $cClassName = "Submit";
 
-       function __construct($name,$value="")
-       {
-               $this->name = $name;
-               $this->value = $value;
-       }
+  function __construct($name)
+  {
+    $this->class = 'Submit';
+    $this->name = $name;
+  }
 
-       function toStringControl() {
+  function getHtml() {
            
            if ($this->id=="") $this->id = $this->name;