CMS  Version 3.9
calendar_events.inc File Reference

Go to the source code of this file.

Variables

 $menu_item = "Calendars"
 
 $calendar_id = checkNumeric($_GET["calendar_id"])
 
 $calendar = new Calendar($calendar_id)
 
 $year = checkNumeric($_REQUEST["year"])
 
 $month = checkNumeric($_REQUEST["month"])
 
 $title = "Calendar View: {$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 end_date >= '$startStr' AND start_date < '$endStr' AND published=1 ORDER BY start_date"
 
 $events = $calendar->Events($constraint)
 
 $view = new CalendarView($events, "fullcalendar")
 
$view year = $year
 
$view month = $month
 
 $tabs = CalendarManager::getTabs($calendar_id)
 

Variable Documentation

◆ $calendar

$calendar = new Calendar($calendar_id)

Definition at line 42 of file calendar_events.inc.

◆ $calendar_id

$calendar_id = checkNumeric($_GET["calendar_id"])

Definition at line 38 of file calendar_events.inc.

◆ $constraint

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

Definition at line 80 of file calendar_events.inc.

◆ $endStr

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

Definition at line 79 of file calendar_events.inc.

◆ $events

$events = $calendar->Events($constraint)

Definition at line 82 of file calendar_events.inc.

◆ $menu_item

$menu_item = "Calendars"

Definition at line 36 of file calendar_events.inc.

◆ $month

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

Definition at line 45 of file calendar_events.inc.

◆ $nextMonth

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

Definition at line 71 of file calendar_events.inc.

◆ $nextYear

$nextYear = $year

Definition at line 72 of file calendar_events.inc.

◆ $prevMonth

$prevMonth = $month - 1

Definition at line 62 of file calendar_events.inc.

◆ $prevYear

$prevYear = $year

Definition at line 63 of file calendar_events.inc.

◆ $start

$start = strtotime($startStr)

Definition at line 60 of file calendar_events.inc.

◆ $startStr

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

Definition at line 59 of file calendar_events.inc.

◆ $tabs

$tabs = CalendarManager::getTabs($calendar_id)

Definition at line 89 of file calendar_events.inc.

◆ $title

$title = "Calendar View: {$calendar->name}"

Definition at line 47 of file calendar_events.inc.

◆ $view

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

Definition at line 84 of file calendar_events.inc.

◆ $year

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

Definition at line 44 of file calendar_events.inc.

◆ month

$view month = $month

Definition at line 87 of file calendar_events.inc.

◆ year

$view year = $year

Definition at line 86 of file calendar_events.inc.