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) |
| | $pageid = optional_param('pageid', NULL, PARAM_INT) |
| | $edit = optional_param('edit', -1, PARAM_BOOL) |
| | $userpassword = optional_param('userpassword','',PARAM_RAW) |
| | $backtocourse = optional_param('backtocourse', false, PARAM_RAW) |
| | $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)) |
| if($backtocourse) | $completion = new completion_info($course) |
| | $url = new moodle_url('/mod/lesson/view.php', array('id'=>$id)) |
| | $context = get_context_instance(CONTEXT_MODULE, $cm->id) |
| | $canmanage = has_capability('mod/lesson:manage', $context) |
| | $lessonoutput = $PAGE->get_renderer('mod_lesson') |
| | $reviewmode = false |
| | $userhasgrade = $DB->count_records("lesson_grades", array("lessonid"=>$lesson->id, "userid"=>$USER->id)) |
if($userhasgrade &&!$lesson->
retake) if(!$canmanage) if($pageid==LESSON_UNSEENBRANCHPAGE) | $attemptflag = false |
| if(empty($pageid)) | $currenttab = 'view' |
| | $extraeditbuttons = false |
| | $lessonpageid = null |
| | $timer = null |
Variable Documentation
Check these for students only TODO: Find a better method for doing this! Check lesson availability Check for password Check dependencies Check for high scores
Definition at line 167 of file view.php.
| if (empty($pageid)) $currenttab = 'view' |
| $extraeditbuttons = false |
| $lessonoutput = $PAGE->get_renderer('mod_lesson') |
| $userhasgrade = $DB->count_records("lesson_grades", array("lessonid"=>$lesson->id, "userid"=>$USER->id)) |