mirror of
https://github.com/moodle/moodle.git
synced 2025-04-14 13:02:07 +02:00
Merge branch 'MDL-50959-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
62652cdc63
@ -88,7 +88,14 @@ class grade_export_xml extends grade_export {
|
||||
fwrite($handle, "\t\t<assignment>{$grade_item->idnumber}</assignment>\n");
|
||||
// this column should be customizable to use either student id, idnumber, uesrname or email.
|
||||
fwrite($handle, "\t\t<student>{$user->idnumber}</student>\n");
|
||||
fwrite($handle, "\t\t<score>$gradestr</score>\n");
|
||||
// Format and display the grade in the selected display type (real, letter, percentage).
|
||||
if (is_array($this->displaytype)) {
|
||||
foreach ($this->displaytype as $gradedisplayconst) {
|
||||
$gradestr = $this->format_grade($grade, $gradedisplayconst);
|
||||
fwrite($handle, "\t\t<score>$gradestr</score>\n");
|
||||
}
|
||||
}
|
||||
|
||||
if ($this->export_feedback) {
|
||||
$feedbackstr = $this->format_feedback($userdata->feedbacks[$itemid]);
|
||||
fwrite($handle, "\t\t<feedback>$feedbackstr</feedback>\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user