Some more refactoring in Form classes.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index 947b368..91123c5 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, $value = '')
+  {
+    $this->class = 'Submit';
+    $this->name = $name;
+    $this->value = $value;
+  }
 
-       function toStringControl() {
+  function getHtml() {
            
            if ($this->id=="") $this->id = $this->name;