CMS  Version 3.9
calendar_view.inc File Reference

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()
 

Variable Documentation

◆ $calendar

$calendar = Calendar::findByIdentifier($identifier)

Definition at line 39 of file calendar_view.inc.

◆ $constraint

$constraint = "WHERE 1=1 AND end_date >= '$startStr' AND start_date < '$endStr' AND published=1"

Definition at line 80 of file calendar_view.inc.

◆ $endStr

if ( $nextMonth > 12) $endStr = sprintf("%d-%02d-01", $nextYear, $nextMonth)

Definition at line 78 of file calendar_view.inc.

◆ $events

$events = $calendar->Events("$constraint ORDER BY start_date")

Definition at line 82 of file calendar_view.inc.

◆ $facetManager

$facetManager = new FacetManager('facet_manager', $view)

Definition at line 87 of file calendar_view.inc.

◆ $identifier

$identifier = $_GET["cal"]

Definition at line 37 of file calendar_view.inc.

◆ $month

$month = checkNumeric($_REQUEST["month"])

Definition at line 44 of file calendar_view.inc.

◆ $nextMonth

if ( $prevMonth<=0) $nextMonth = $month + 1

Definition at line 70 of file calendar_view.inc.

◆ $nextYear

$nextYear = $year

Definition at line 71 of file calendar_view.inc.

◆ $prevMonth

$prevMonth = $month - 1

Definition at line 61 of file calendar_view.inc.

◆ $prevYear

$prevYear = $year

Definition at line 62 of file calendar_view.inc.

◆ $script

$script = $facetManager->writeScript()

Definition at line 90 of file calendar_view.inc.

◆ $start

$start = strtotime($startStr)

Definition at line 59 of file calendar_view.inc.

◆ $startStr

if (! $year) if (! $month) $startStr = sprintf("%d-%02d-01", $year, $month)

Definition at line 58 of file calendar_view.inc.

◆ $view

$view = new CalendarView($events, "fullcalendar")

Definition at line 83 of file calendar_view.inc.

◆ $year

$year = checkNumeric($_REQUEST["year"])

Definition at line 43 of file calendar_view.inc.

◆ month

$view month = $month

Definition at line 85 of file calendar_view.inc.

◆ page_title

$page page_title = "{$calendar->name}"

Definition at line 46 of file calendar_view.inc.

◆ year

$view year = $year

Definition at line 84 of file calendar_view.inc.