|
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) | |
| $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) | |
| $canmanage = has_capability('mod/lesson:manage', $context) | |
| $lessonoutput = $PAGE->get_renderer('mod_lesson') | |
| $url = new moodle_url('/mod/lesson/continue.php', array('id'=>$cm->id)) | |
| $userhasgrade = $DB->count_records("lesson_grades", array("lessonid"=>$lesson->id, "userid"=>$USER->id)) | |
| $reviewmode = false | |
| if($lesson->displayleft) | if ($lesson->ongoing &&!$reviewmode) |
| $canmanage = has_capability('mod/lesson:manage', $context) |
Definition at line 41 of file continue.php.
| $cm = get_coursemodule_from_id('lesson', $id, 0, false, MUST_EXIST) |
Definition at line 33 of file continue.php.
Definition at line 40 of file continue.php.
| $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST) |
Definition at line 34 of file continue.php.
| $id = required_param('id', PARAM_INT) |
Require the specific libraries
Definition at line 31 of file continue.php.
| $lesson = new lesson($DB->get_record('lesson', array('id' => $cm->instance), '*', MUST_EXIST)) |
Definition at line 35 of file continue.php.
| $lessonoutput = $PAGE->get_renderer('mod_lesson') |
Definition at line 42 of file continue.php.
| $reviewmode = false |
Definition at line 72 of file continue.php.
| if (isset($USER->modattempts[$lesson->id])) if (!$result->correctanswer &&!$result->noanswer &&!$result->isessayquestion &&!$reviewmode &&$lesson->review) $url = new moodle_url('/mod/lesson/continue.php', array('id'=>$cm->id)) |
Definition at line 44 of file continue.php.
| $userhasgrade = $DB->count_records("lesson_grades", array("lessonid"=>$lesson->id, "userid"=>$USER->id)) |
Definition at line 71 of file continue.php.