MDL-44447 grade_export: Added multiple grade display types to grade export.

This commit is contained in:
Simey Lameze 2014-08-22 10:50:08 +08:00
parent 482abd0f70
commit be289f57b2
17 changed files with 150 additions and 47 deletions

View file

@ -37,7 +37,7 @@ if (groups_get_course_groupmode($COURSE) == SEPARATEGROUPS and !has_capability('
print_error('cannotaccessgroup', 'grades');
}
}
$mform = new grade_export_form(null, array('publishing' => true, 'simpleui' => true));
$mform = new grade_export_form(null, array('publishing' => true, 'simpleui' => true, 'multipledisplaytypes' => false));
$formdata = $mform->get_data();
// print all the exported data here

View file

@ -68,7 +68,7 @@ class grade_export_xml extends grade_export {
foreach ($userdata->grades as $itemid => $grade) {
$grade_item = $this->grade_items[$itemid];
$grade->grade_item =& $grade_item;
$gradestr = $this->format_grade($grade); // no formating for now
$gradestr = $this->format_grade($grade, $this->displaytype); // no formating for now
// MDL-11669, skip exported grades or bad grades (if setting says so)
if ($export_tracking) {

View file

@ -46,7 +46,8 @@ $formoptions = array(
'idnumberrequired' => true,
'updategradesonly' => true,
'publishing' => true,
'simpleui' => true
'simpleui' => true,
'multipledisplaytypes' => false
);
$mform = new grade_export_form($actionurl, $formoptions);