Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/calendar/event.php File Reference

Go to the source code of this file.

Namespaces

namespace  calendar

Variables

 $action = optional_param('action', 'new', PARAM_ALPHA)
 $eventid = optional_param('id', 0, PARAM_INT)
 $courseid = optional_param('courseid', SITEID, PARAM_INT)
 $cal_y = optional_param('cal_y', 0, PARAM_INT)
 $cal_m = optional_param('cal_m', 0, PARAM_INT)
 $cal_d = optional_param('cal_d', 0, PARAM_INT)
 $url = new moodle_url('/calendar/event.php', array('action' => $action))
if($action=== 'delete'&&$eventid > 0) $calendar = new calendar_information($cal_d, $cal_m, $cal_y)
 $formoptions = new stdClass
$formoptions event = $event
$formoptions hasduration = ($event->timeduration > 0)
 $mform = new event_form(null, $formoptions)
 $data = $mform->get_data()
if($data$viewcalendarurl = new moodle_url(CALENDAR_URL.'view.php', $PAGE->url->params())
 $strcalendar = get_string('calendar', 'calendar')
 $renderer = $PAGE->get_renderer('core_calendar')

Variable Documentation

Definition at line 56 of file event.php.

$cal_d = optional_param('cal_d', 0, PARAM_INT)

Definition at line 62 of file event.php.

$cal_m = optional_param('cal_m', 0, PARAM_INT)

Definition at line 61 of file event.php.

$cal_y = optional_param('cal_y', 0, PARAM_INT)

Definition at line 60 of file event.php.

if ($action=== 'delete'&&$eventid > 0) $calendar = new calendar_information($cal_d, $cal_m, $cal_y)

Definition at line 102 of file event.php.

Definition at line 58 of file event.php.

$data = $mform->get_data()

Definition at line 157 of file event.php.

$eventid = optional_param('id', 0, PARAM_INT)

Definition at line 57 of file event.php.

$formoptions = new stdClass

Definition at line 105 of file event.php.

$mform = new event_form(null, $formoptions)

Definition at line 155 of file event.php.

$renderer = $PAGE->get_renderer('core_calendar')

Definition at line 193 of file event.php.

$strcalendar = get_string('calendar', 'calendar')

Definition at line 186 of file event.php.

$url = new moodle_url('/calendar/event.php', array('action' => $action))

Definition at line 64 of file event.php.

if ($data) $viewcalendarurl = new moodle_url(CALENDAR_URL.'view.php', $PAGE->url->params())

Definition at line 183 of file event.php.

string $description The description of the event = $event

Definition at line 153 of file event.php.

$formoptions hasduration = ($event->timeduration > 0)

Definition at line 154 of file event.php.

 All Data Structures Namespaces Files Functions Variables Enumerations