]> 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 947b368d8bd5db267b488d62bcd029a321183d58..35eb6df3df54f9bfe5a0ea1577b0903ff79d97f0 100644 (file)
 import('form.FormElement');
        
 class Submit extends FormElement {
-       var $class = '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;