|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Variables | |
| $courseid = required_param('courseid', PARAM_INT) | |
| $id = optional_param('id', 0, PARAM_INT) | |
| $itemid = optional_param('itemid', 0, PARAM_INT) | |
| $userid = optional_param('userid', 0, PARAM_INT) | |
| $url = new moodle_url('/grade/edit/tree/grade.php', array('courseid'=>$courseid)) | |
| $context = get_context_instance(CONTEXT_COURSE, $course->id) | |
| if(!has_capability('moodle/grade:manage', $context)) | $gpr = new grade_plugin_return() |
| $returnurl = $gpr->get_return_url($CFG->wwwroot.'/grade/report.php?id='.$course->id) | |
| if(!empty($id)) else if(empty($userid) or empty($itemid)) if(!$grade_item=grade_item::fetch(array('id'=> $itemid, 'courseid'=> $courseid))) if(groups_get_course_groupmode($COURSE)==SEPARATEGROUPS and!has_capability('moodle/site:accessallgroups', $context)) | $mform = new edit_grade_form(null, array('grade_item'=>$grade_item, 'gpr'=>$gpr)) |
| $strgraderreport = get_string('graderreport', 'grades') | |
| $strgradeedit = get_string('editgrade', 'grades') | |
| $struser = get_string('user') | |
| die | |
| if (!has_capability('moodle/grade:manage', $context)) $gpr = new grade_plugin_return() |
| if (!empty($id)) else if (empty($userid) or empty($itemid)) if (!$grade_item=grade_item::fetch(array('id'=> $itemid, 'courseid'=> $courseid))) if (groups_get_course_groupmode($COURSE)==SEPARATEGROUPS and!has_capability('moodle/site:accessallgroups', $context)) $mform = new edit_grade_form(null, array('grade_item'=>$grade_item, 'gpr'=>$gpr)) |
| $strgradeedit = get_string('editgrade', 'grades') |
| $strgraderreport = get_string('graderreport', 'grades') |
| $struser = get_string('user') |