]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/DateField.class.php
Refactoring - renamed a few things.
[timetracker.git] / WEB-INF / lib / form / DateField.class.php
index 87f9ee8212aaff3858c4842fe00f4bf80049f7be..49c2354425038587097b30fa656133c273c0c7b5 100644 (file)
@@ -81,10 +81,9 @@ class DateField extends TextField {
     }
   }
 
-  function toStringControl()  {
-    if (!$this->isRenderable()) return "";
+  function toStringControl() {
 
-    if (!$this->isEnable()) {
+    if (!$this->isEnabled()) {
       $html = htmlspecialchars($this->getValue()).
         "<input type=\"hidden\" name=\"$this->name\" value=\"".htmlspecialchars($this->getValue())."\">\n";
     } else {
@@ -398,8 +397,8 @@ class DateField extends TextField {
       if ($this->size!="")
         $html .= " size=\"$this->size\"";
 
-      if ($this->mStyle!="")
-         $html .= " style=\"$this->mStyle\"";
+      if ($this->style!="")
+         $html .= " style=\"$this->style\"";
 
         $html .= " maxlength=\"50\"";