Cheetah
Public Member Functions | List of all members
TagsCalendar Class Reference
Inheritance diagram for TagsCalendar:
ChTemplCalendar ChBaseCalendar ChWsbCalendar

Public Member Functions

 __construct ($iYear, $iMonth)
 
 display ($isMiniMode=false)
 
 getData ()
 
 getBaseUri ()
 
 getBrowseUri ()
 
 getEntriesNames ()
 
 _getCalendar ()
 
- Public Member Functions inherited from ChWsbCalendar
 _getWeekNames ($isMiniMode=false)
 
 _getCalendarGrid (&$aCalendarGrid)
 
 getTitle ()
 
 getUnit (&$aData)
 
 getMonthUrl ($isNextMoths, $isMiniMode=false)
 

Additional Inherited Members

- Public Attributes inherited from ChWsbCalendar
 $iYear
 
 $iMonth
 
 $iPrevYear
 
 $iPrevMonth
 
 $iNextYear
 
 $iNextMonth
 
 $iFirstWeekDay
 
 $iNumDaysInMonth
 
 $sMonthName
 
 $iWeekStart
 
 $iWeekEnd
 

Detailed Description

Definition at line 60 of file tags.php.

Constructor & Destructor Documentation

◆ __construct()

TagsCalendar::__construct (   $iYear,
  $iMonth 
)

Reimplemented from ChTemplCalendar.

Definition at line 62 of file tags.php.

Member Function Documentation

◆ _getCalendar()

TagsCalendar::_getCalendar ( )

Reimplemented from ChWsbCalendar.

Definition at line 115 of file tags.php.

◆ display()

TagsCalendar::display (   $isMiniMode = false)

Reimplemented from ChBaseCalendar.

Definition at line 67 of file tags.php.

◆ getBaseUri()

TagsCalendar::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 100 of file tags.php.

◆ getBrowseUri()

TagsCalendar::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 105 of file tags.php.

◆ getData()

TagsCalendar::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 86 of file tags.php.

◆ getEntriesNames()

TagsCalendar::getEntriesNames ( )

return entries names in single and plural forms, for example: ('event', 'events') or ('profile', 'profiles')

Reimplemented from ChWsbCalendar.

Definition at line 110 of file tags.php.


The documentation for this class was generated from the following file: