|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | mod |
Local Library of functions for module scorm. | |
Variables | |
| $id = required_param('id', PARAM_INT) | |
| $action = required_param('action', PARAM_ALPHA) | |
| $pageid = required_param('pageid', PARAM_INT) | |
| $cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST) | |
| $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST) | |
| $lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST)) | |
| $url = new moodle_url('/mod/lesson/lesson.php', array('id'=>$id,'action'=>$action)) | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $lessonoutput = $PAGE->get_renderer('mod_lesson') | |
| switch ($action) | |
| Process the action. | |
| $action = required_param('action', PARAM_ALPHA) |
Definition at line 36 of file lesson.php.
| $cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST) |
Definition at line 39 of file lesson.php.
Definition at line 48 of file lesson.php.
| $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST) |
Definition at line 40 of file lesson.php.
| $id = required_param('id', PARAM_INT) |
Definition at line 35 of file lesson.php.
| $lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST)) |
Definition at line 41 of file lesson.php.
| $lessonoutput = $PAGE->get_renderer('mod_lesson') |
Definition at line 52 of file lesson.php.
| $pageid = required_param('pageid', PARAM_INT) |
Definition at line 37 of file lesson.php.
Definition at line 45 of file lesson.php.
Process the action.
Definition at line 55 of file lesson.php.