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) |
| | $mode = optional_param('mode', 'display', PARAM_ALPHA) |
| | $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)) |
| | $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
| | $url = new moodle_url('/mod/lesson/essay.php', array('id'=>$id)) |
| | $attempt = new stdClass() |
| | $user = new stdClass() |
| | $attemptid = optional_param('attemptid', 0, PARAM_INT) |
| | $lessonoutput = $PAGE->get_renderer('mod_lesson') |
| | switch ($mode) |
Variable Documentation
| $lessonoutput = $PAGE->get_renderer('mod_lesson') |