Refactoring - removed unused stuff.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index bcfe3be..236fdb4 100644 (file)
@@ -33,12 +33,11 @@ class Submit extends FormElement {
 
        function __construct($name,$value="")
        {
-               $this->name                     = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
 
-       function toStringControl()      {
-               if (!$this->isRenderable()) return "";
+       function toStringControl() {
            
            if ($this->id=="") $this->id = $this->name;
            
@@ -49,10 +48,10 @@ class Submit extends FormElement {
                        $html .= " disabled=\"true\"";
                }
                
-               $html .= " value=\"$this->mValue\"";
+               $html .= " value=\"$this->value\"";
                
-               if ($this->mOnClick) {
-                       $html .= " onclick=\"".$this->mOnClick."\"";
+               if ($this->on_click) {
+                    $html .= " onclick=\"".$this->on_click."\"";
                }
                
                $html .= ">";