]> wagnertech.de Git - timetracker.git/blobdiff - WEB-INF/lib/form/Calendar.class.php
Refactoring - removed unused tabindex.
[timetracker.git] / WEB-INF / lib / form / Calendar.class.php
index b2cdf33b111db0e06d185ab8b9db37f8dfdb5913..a64a0359d0969221410fe7031d8afe4ebe093738 100644 (file)
@@ -47,7 +47,7 @@ class Calendar extends FormElement {
     // var $mAllDays       = true;
     var $cClassName    = "Calendar";
 
-    function Calendar($name) {
+    function __construct($name) {
         $this->controlName = $name;
         $this->mMonthNames = array('January','February','March','April','May','June','July','August','September','October','November','December');
         $this->mWeekDayShortNames = array('Su','Mo','Tu','We','Th','Fr','Sa');
@@ -90,7 +90,7 @@ class Calendar extends FormElement {
     function toString($date="") {
       global $i18n;
        
-      $indate = $this->mValue;
+      $indate = $this->value;
       if (!$indate) $indate = strftime(DB_DATEFORMAT);
 
       if (!$this->isRenderable()) return "";
@@ -166,7 +166,7 @@ class Calendar extends FormElement {
             $stl_cell = "";
             $stl_link = "";
 
-            // weeekend
+            // weekend
             if ($j==$weekend_start || $j==$weekend_end) {
               $stl_cell = ' class="CalendarDayWeekend"';
               $stl_link = ' class="CalendarLinkWeekend"';