X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Flib%2Fform%2FCalendar.class.php;h=e9d5097622e374ae1036b1d93e63c9215ea5edf6;hb=bd569da4f1d6ada00f5e48eac9716c068003748a;hp=811a3fc5274af309b35f28942350b9673eb906b6;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/lib/form/Calendar.class.php b/WEB-INF/lib/form/Calendar.class.php index 811a3fc5..e9d50976 100644 --- a/WEB-INF/lib/form/Calendar.class.php +++ b/WEB-INF/lib/form/Calendar.class.php @@ -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'); @@ -73,7 +73,7 @@ class Calendar extends FormElement { $this->weekStartDay = $user->week_start; } - function setStyle($style) { $this->mStyle = $style; } + function setStyle($style) { $this->style = $style; } function setCellStyle($style) { $this->mCellStyle = $style; } function setACellStyle($style) { $this->mACellStyle = $style; } function setLinkStyle($style) { $this->mLinkStyle = $style; } @@ -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"'; @@ -281,4 +281,3 @@ class Calendar extends FormElement { return false; } } -?> \ No newline at end of file