]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Submit.class.php
Refactoring. Moved a member out of base class.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index bcfe3be2ca28f2f290d1568871ef3cd8fd261076..ba3d698c89b341d8e65f5da07dc3df80bf9cf299 100644 (file)
@@ -33,8 +33,8 @@ class Submit extends FormElement {
 
        function __construct($name,$value="")
        {
-               $this->name                     = $name;
-               $this->mValue                   = $value;
+               $this->name = $name;
+               $this->value = $value;
        }
 
        function toStringControl()      {
@@ -49,10 +49,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 .= ">";