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
| $data = $mform->get_data() |
| $renderer = $PAGE->get_renderer('core_calendar') |