]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Submit.class.php
Ongoing refactoring of form controls.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index facfffc811a05245b46724c12482da02dbe40453..bcfe3be2ca28f2f290d1568871ef3cd8fd261076 100644 (file)
@@ -33,17 +33,17 @@ class Submit extends FormElement {
 
        function __construct($name,$value="")
        {
-               $this->mName                    = $name;
+               $this->name                     = $name;
                $this->mValue                   = $value;
        }
 
        function toStringControl()      {
                if (!$this->isRenderable()) return "";
            
-           if ($this->mId=="") $this->mId = $this->mName;
+           if ($this->id=="") $this->id = $this->name;
            
                $html = "\n\t<input";
-               $html .= " type=\"submit\" name=\"$this->mName\" id=\"$this->mId\"";
+               $html .= " type=\"submit\" name=\"$this->name\" id=\"$this->id\"";
                
                if (!$this->isEnable()) {
                        $html .= " disabled=\"true\"";