Cheetah
|
Public Member Functions | |
__construct ($iYear, $iMonth, &$oDb, &$oTemplate, &$oConfig) | |
getData () | |
getBaseUri () | |
getBrowseUri () | |
getEntriesNames () | |
![]() | |
__construct ($iYear, $iMonth) | |
__construct ($iYear, $iMonth) | |
__construct ($iYear, $iMonth) | |
![]() | |
display ($isMiniMode=false) | |
![]() | |
_getWeekNames ($isMiniMode=false) | |
_getCalendarGrid (&$aCalendarGrid) | |
_getCalendar () | |
getTitle () | |
getUnit (&$aData) | |
getMonthUrl ($isNextMoths, $isMiniMode=false) | |
Public Attributes | |
$oDb | |
$oTemplate | |
$oConfig | |
$sActionViewResult = 'view_calendar/' | |
$sActionBase = 'calendar/' | |
![]() | |
$iYear | |
$iMonth | |
$iPrevYear | |
$iPrevMonth | |
$iNextYear | |
$iNextMonth | |
$iFirstWeekDay | |
$iNumDaysInMonth | |
$sMonthName | |
$iWeekStart | |
$iWeekEnd | |
Definition at line 10 of file ChPollCalendar.php.
ChPollCalendar::__construct | ( | $iYear, | |
$iMonth, | |||
& | $oDb, | ||
& | $oTemplate, | ||
& | $oConfig | ||
) |
Definition at line 17 of file ChPollCalendar.php.
ChPollCalendar::getBaseUri | ( | ) |
return base calendar url year and month will be added to this url automatically so if your base url is /m/some_module/calendar/, it will be transormed to /m/some_module/calendar/YEAR/MONTH, like /m/some_module/calendar/2009/3
Reimplemented from ChWsbCalendar.
Definition at line 30 of file ChPollCalendar.php.
ChPollCalendar::getBrowseUri | ( | ) |
return browse entries url year and month and day will be added to this url automatically so if your base url is /m/some_module/browse/calendar/, it will be transormed to /m/some_module/browse/calendar/YEAR/MONTH/DAY, like /m/some_module/browse/calendar/2009/3/15
Reimplemented from ChWsbCalendar.
Definition at line 35 of file ChPollCalendar.php.
ChPollCalendar::getData | ( | ) |
return records for current month, there is mandatory field Day
- a day for current row use the following class variables to pass to your database query $this->iYear, $this->iMonth, $this->iNextYear, $this->iNextMonth
for example:
return $db->getAll (" SELECT *, DAYOFMONTH(FROM_UNIXTIME(EventStart
)) AS Day
FROM my_table
WHERE Date
>= UNIX_TIMESTAMP('{$this->iYear}-{$this->iMonth}-1') AND Date
< UNIX_TIMESTAMP('{$this->iNextYear}-{$this->iNextMonth}-1') AND Status
= 'approved'");
Reimplemented from ChWsbCalendar.
Definition at line 25 of file ChPollCalendar.php.
ChPollCalendar::getEntriesNames | ( | ) |
return entries names in single and plural forms, for example: ('event', 'events') or ('profile', 'profiles')
Reimplemented from ChWsbCalendar.
Definition at line 40 of file ChPollCalendar.php.
ChPollCalendar::$oConfig |
Definition at line 12 of file ChPollCalendar.php.
ChPollCalendar::$oDb |
Definition at line 12 of file ChPollCalendar.php.
ChPollCalendar::$oTemplate |
Definition at line 12 of file ChPollCalendar.php.
ChPollCalendar::$sActionBase = 'calendar/' |
Definition at line 15 of file ChPollCalendar.php.
ChPollCalendar::$sActionViewResult = 'view_calendar/' |
Definition at line 14 of file ChPollCalendar.php.