![]() |
CMS
Version 3.9
|
Go to the source code of this file.
Variables | |
$identifier = $_GET["cal"] | |
$calendar = Calendar::findByIdentifier($identifier) | |
$year = checkNumeric($_REQUEST["year"]) | |
$month = checkNumeric($_REQUEST["month"]) | |
$page | page_title = "{$calendar->name}" |
if(! $year) if(! $month) | $startStr = sprintf("%d-%02d-01", $year, $month) |
$start = strtotime($startStr) | |
$prevMonth = $month - 1 | |
$prevYear = $year | |
if($prevMonth<=0) | $nextMonth = $month + 1 |
$nextYear = $year | |
if($nextMonth > 12) | $endStr = sprintf("%d-%02d-01", $nextYear, $nextMonth) |
$constraint = "WHERE 1=1 AND end_date >= '$startStr' AND start_date < '$endStr' AND published=1" | |
$events = $calendar->Events("$constraint ORDER BY start_date") | |
$view = new CalendarView($events, "fullcalendar") | |
$view | year = $year |
$view | month = $month |
$facetManager = new FacetManager('facet_manager', $view) | |
$script = $facetManager->writeScript() | |
$calendar = Calendar::findByIdentifier($identifier) |
Definition at line 39 of file calendar_view.inc.
$constraint = "WHERE 1=1 AND end_date >= '$startStr' AND start_date < '$endStr' AND published=1" |
Definition at line 80 of file calendar_view.inc.
if ( $nextMonth > 12) $endStr = sprintf("%d-%02d-01", $nextYear, $nextMonth) |
Definition at line 78 of file calendar_view.inc.
$events = $calendar->Events("$constraint ORDER BY start_date") |
Definition at line 82 of file calendar_view.inc.
$facetManager = new FacetManager('facet_manager', $view) |
Definition at line 87 of file calendar_view.inc.
$identifier = $_GET["cal"] |
Definition at line 37 of file calendar_view.inc.
$month = checkNumeric($_REQUEST["month"]) |
Definition at line 44 of file calendar_view.inc.
Definition at line 70 of file calendar_view.inc.
$nextYear = $year |
Definition at line 71 of file calendar_view.inc.
$prevMonth = $month - 1 |
Definition at line 61 of file calendar_view.inc.
$prevYear = $year |
Definition at line 62 of file calendar_view.inc.
$script = $facetManager->writeScript() |
Definition at line 90 of file calendar_view.inc.
$start = strtotime($startStr) |
Definition at line 59 of file calendar_view.inc.
Definition at line 58 of file calendar_view.inc.
$view = new CalendarView($events, "fullcalendar") |
Definition at line 83 of file calendar_view.inc.
$year = checkNumeric($_REQUEST["year"]) |
Definition at line 43 of file calendar_view.inc.
$view month = $month |
Definition at line 85 of file calendar_view.inc.
$page page_title = "{$calendar->name}" |
Definition at line 46 of file calendar_view.inc.
$view year = $year |
Definition at line 84 of file calendar_view.inc.