|
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 | |
| $cmid = required_param('cmid', PARAM_INT) | |
| $mode = optional_param('mode', '', PARAM_ALPHA) | |
| if(!$cm=get_coursemodule_from_id('quiz', $cmid)) if(!$quiz=$DB-> get_record('quiz', array('id'=> $cm->instance))) | $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST) |
| $groups = groups_get_all_groups($cm->course) | |
| if($groups===false) if($mode!="user"and $mode!="group") | $groupmode = ($mode == "group") |
| $url = new moodle_url('/mod/quiz/overrides.php', array('cmid'=>$cm->id, 'mode'=>$mode)) | |
| $context = get_context_instance(CONTEXT_MODULE, $cm->id) | |
| $sql | |
| $params = array($quiz->id) | |
| $orphaned = $DB->get_records_sql($sql, $params) | |
| $overrides = $DB->get_records_sql($sql, $params) | |
| $table = new html_table() | |
| $table | headspan = array(1, 2, 1) |
| $table | colclasses = array('colname', 'colsetting', 'colvalue', 'colaction') |
| $table | head |
| $userurl = new moodle_url('/user/view.php', array()) | |
| $groupurl = new moodle_url('/group/overview.php', array('id' => $cm->course)) | |
| $overridedeleteurl = new moodle_url('/mod/quiz/overridedelete.php') | |
| $overrideediturl = new moodle_url('/mod/quiz/overrideedit.php') | |
| $hasinactive = false | |
| foreach ($overrides as $override) | |
| if(count($table->data)) | if ($hasinactive) |
| $options = array() | |
| $cmid = required_param('cmid', PARAM_INT) |
Definition at line 33 of file overrides.php.
Definition at line 66 of file overrides.php.
| if (!$cm=get_coursemodule_from_id('quiz', $cmid)) if (!$quiz=$DB->get_record('quiz', array('id'=> $cm->instance))) $course = $DB->get_record('course', array('id'=>$cm->course), '*', MUST_EXIST) |
Definition at line 42 of file overrides.php.
Definition at line 58 of file overrides.php.
| $groups = groups_get_all_groups($cm->course) |
Definition at line 45 of file overrides.php.
Definition at line 122 of file overrides.php.
| $hasinactive = false |
Definition at line 127 of file overrides.php.
| $mode = optional_param('mode', '', PARAM_ALPHA) |
Definition at line 34 of file overrides.php.
| $options = array() |
Definition at line 258 of file overrides.php.
| $orphaned = $DB->get_records_sql($sql, $params) |
Definition at line 86 of file overrides.php.
| $overridedeleteurl = new moodle_url('/mod/quiz/overridedelete.php') |
Definition at line 124 of file overrides.php.
| $overrideediturl = new moodle_url('/mod/quiz/overrideedit.php') |
Definition at line 125 of file overrides.php.
| $overrides = $DB->get_records_sql($sql, $params) |
Definition at line 109 of file overrides.php.
Definition at line 85 of file overrides.php.
| $sql |
'SELECT o.id FROM {quiz_overrides} o LEFT JOIN {groups} g ON o.groupid = g.id WHERE o.groupid IS NOT NULL AND g.id IS NULL AND o.quiz = ?'
Definition at line 79 of file overrides.php.
| $table = new html_table() |
Definition at line 112 of file overrides.php.
Definition at line 60 of file overrides.php.
| $userurl = new moodle_url('/user/view.php', array()) |
Definition at line 121 of file overrides.php.
| $table colclasses = array('colname', 'colsetting', 'colvalue', 'colaction') |
Definition at line 114 of file overrides.php.
| foreach($overrides as $override) |
Definition at line 129 of file overrides.php.
array( $colname, get_string('overrides', 'quiz'), get_string('action'), )
Definition at line 115 of file overrides.php.
Definition at line 113 of file overrides.php.