|
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 | |
| $asid = required_param('asid', PARAM_INT) | |
| $assessment = $DB->get_record('workshop_assessments', array('id' => $asid), '*', MUST_EXIST) | |
| $example = $DB->get_record('workshop_submissions', array('id' => $assessment->submissionid, 'example' => 1), '*', MUST_EXIST) | |
| $workshop = $DB->get_record('workshop', array('id' => $example->workshopid), '*', MUST_EXIST) | |
| $course = $DB->get_record('course', array('id' => $workshop->course), '*', MUST_EXIST) | |
| $cm = get_coursemodule_from_instance('workshop', $workshop->id, $course->id, false, MUST_EXIST) | |
| $currenttab = 'assessment' | |
| $canmanage = has_capability('mod/workshop:manageexamples', $workshop->context) | |
| $isreviewer = ($USER->id == $assessment->reviewerid) | |
| $mform = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, $assessmenteditable) | |
| if($mform->is_cancelled()) elseif($assessmenteditable and($data=$mform-> get_data())) | $output = $PAGE->get_renderer('mod_workshop') |
| if($canmanage and $assessment-> weight==1) else if($isreviewer) else | if ($canmanage) |
| $asid = required_param('asid', PARAM_INT) |
Definition at line 30 of file exassessment.php.
| if (trim($workshop->instructreviewers)) $assessment = $DB->get_record('workshop_assessments', array('id' => $asid), '*', MUST_EXIST) |
Definition at line 31 of file exassessment.php.
| $canmanage = has_capability('mod/workshop:manageexamples', $workshop->context) |
Definition at line 49 of file exassessment.php.
| $cm = get_coursemodule_from_instance('workshop', $workshop->id, $course->id, false, MUST_EXIST) |
Definition at line 35 of file exassessment.php.
| $course = $DB->get_record('course', array('id' => $workshop->course), '*', MUST_EXIST) |
Definition at line 34 of file exassessment.php.
| $currenttab = 'assessment' |
Definition at line 47 of file exassessment.php.
| $example = $DB->get_record('workshop_submissions', array('id' => $assessment->submissionid, 'example' => 1), '*', MUST_EXIST) |
Definition at line 32 of file exassessment.php.
| $isreviewer = ($USER->id == $assessment->reviewerid) |
Definition at line 50 of file exassessment.php.
| $mform = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, $assessmenteditable) |
Definition at line 69 of file exassessment.php.
| if ($mform->is_cancelled()) elseif ($assessmenteditable and($data=$mform->get_data())) $output = $PAGE->get_renderer('mod_workshop') |
Definition at line 105 of file exassessment.php.
| if (isguestuser()) $workshop = $DB->get_record('workshop', array('id' => $example->workshopid), '*', MUST_EXIST) |
Definition at line 33 of file exassessment.php.
Definition at line 145 of file exassessment.php.