|
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) | |
| $sid = required_param('sid', PARAM_INT) | |
| $aid = required_param('aid', PARAM_INT) | |
| $cm = get_coursemodule_from_id('workshop', $cmid, 0, false, MUST_EXIST) | |
| $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST) | |
| if(isguestuser()) | $workshop = $DB->get_record('workshop', array('id' => $cm->instance), '*', MUST_EXIST) |
| $strategy = $workshop->grading_strategy_instance() | |
| $example = $workshop->get_example_by_id($sid) | |
| $assessment = $workshop->get_assessment_by_id($aid) | |
| if($assessment->submissionid!=$example-> id) | $mformassessment = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, false) |
| if($refasid=$DB->get_field('workshop_assessments', 'id', array('submissionid'=> $example->id, 'weight'=> 1))) | $canmanage = has_capability('mod/workshop:manageexamples', $workshop->context) |
| $isreviewer = ($USER->id == $assessment->reviewerid) | |
| $output = $PAGE->get_renderer('mod_workshop') | |
| if(!empty($mformreference)) if($isreviewer) | elseif ($canmanage) |
| $aid = required_param('aid', PARAM_INT) |
Definition at line 32 of file excompare.php.
| $assessment = $workshop->get_assessment_by_id($aid) |
Definition at line 49 of file excompare.php.
| if ($refasid=$DB->get_field('workshop_assessments', 'id', array('submissionid'=> $example->id, 'weight'=> 1))) $canmanage = has_capability('mod/workshop:manageexamples', $workshop->context) |
Definition at line 59 of file excompare.php.
| $cm = get_coursemodule_from_id('workshop', $cmid, 0, false, MUST_EXIST) |
Definition at line 34 of file excompare.php.
| $cmid = required_param('cmid', PARAM_INT) |
Definition at line 30 of file excompare.php.
| $course = $DB->get_record('course', array('id' => $cm->course), '*', MUST_EXIST) |
Definition at line 35 of file excompare.php.
| $example = $workshop->get_example_by_id($sid) |
Definition at line 48 of file excompare.php.
| $isreviewer = ($USER->id == $assessment->reviewerid) |
Definition at line 60 of file excompare.php.
| if ($assessment->submissionid!=$example->id) $mformassessment = $strategy->get_assessment_form($PAGE->url, 'assessment', $assessment, false) |
Definition at line 53 of file excompare.php.
| $output = $PAGE->get_renderer('mod_workshop') |
Definition at line 75 of file excompare.php.
| $sid = required_param('sid', PARAM_INT) |
Definition at line 31 of file excompare.php.
| $strategy = $workshop->grading_strategy_instance() |
Definition at line 44 of file excompare.php.
| $workshop = $DB->get_record('workshop', array('id' => $cm->instance), '*', MUST_EXIST) |
Definition at line 42 of file excompare.php.
Definition at line 112 of file excompare.php.