|
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) | |
| if(!$course=$DB->get_record('course', array('id'=> $id))) | $coursecontext = get_context_instance(CONTEXT_COURSE, $id) |
| $strquizzes = get_string("modulenameplural", "quiz") | |
| $streditquestions = '' | |
| $editqcontexts = new question_edit_contexts($coursecontext) | |
| if(!$quizzes=get_all_instances_in_course("quiz", $course)) | $sections = get_all_sections($course->id) |
| $showclosingheader = false | |
| $showfeedback = false | |
| foreach($quizzes as $quiz) | $headings = array(get_string('name')) |
| $align = array('left') | |
| $showing = '' | |
| if(has_capability('mod/quiz:viewreports', $coursecontext)) else if(has_any_capability(array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'), $coursecontext)) | $table = new html_table() |
| $table | head = $headings |
| $table | align = $align |
| $currentsection = '' | |
| foreach ($quizzes as $quiz) | |
| if (!$course=$DB->get_record('course', array('id'=> $id))) $coursecontext = get_context_instance(CONTEXT_COURSE, $id) |
| $editqcontexts = new question_edit_contexts($coursecontext) |
| foreach ($quizzes as $quiz) $headings = array(get_string('name')) |
| if (!$quizzes=get_all_instances_in_course("quiz", $course)) $sections = get_all_sections($course->id) |
| $strquizzes = get_string("modulenameplural", "quiz") |
| if (has_capability('mod/quiz:viewreports', $coursecontext)) else if (has_any_capability(array('mod/quiz:reviewmyattempts', 'mod/quiz:attempt'),$coursecontext)) $table = new html_table() |