Some renaming.
[timetracker.git] / WEB-INF / lib / form / Submit.class.php
index c4a2c0d..947b368 100644 (file)
@@ -29,7 +29,7 @@
 import('form.FormElement');
        
 class Submit extends FormElement {
-       var $cClassName = "Submit";
+       var $class = 'Submit';
 
        function __construct($name,$value="")
        {
@@ -37,22 +37,21 @@ class Submit extends FormElement {
                $this->value = $value;
        }
 
-       function toStringControl()      {
-               if (!$this->isRenderable()) return "";
+       function toStringControl() {
            
            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\"";
                }
                
                $html .= " value=\"$this->value\"";
                
-               if ($this->mOnClick) {
-                       $html .= " onclick=\"".$this->mOnClick."\"";
+               if ($this->on_click) {
+                    $html .= " onclick=\"".$this->on_click."\"";
                }
                
                $html .= ">";