]> 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 236fdb4bd9f2dc7a0c4eb8489ca8543768b28d6c..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;
            
                $html = "\n\t<input";
                $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
                
-               if (!$this->isEnable()) {
+               if (!$this->isEnabled()) {
                        $html .= " disabled=\"true\"";
                }