mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 18:06:51 +02:00
MDL-44447 grade_export: Added multiple grade display types to grade export.
This commit is contained in:
parent
482abd0f70
commit
be289f57b2
17 changed files with 150 additions and 47 deletions
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue