mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-50959-master' of git://github.com/lameze/moodle
This commit is contained in:
commit
62652cdc63
1 changed files with 8 additions and 1 deletions
|
@ -88,7 +88,14 @@ class grade_export_xml extends grade_export {
|
||||||
fwrite($handle, "\t\t<assignment>{$grade_item->idnumber}</assignment>\n");
|
fwrite($handle, "\t\t<assignment>{$grade_item->idnumber}</assignment>\n");
|
||||||
// this column should be customizable to use either student id, idnumber, uesrname or email.
|
// 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<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) {
|
if ($this->export_feedback) {
|
||||||
$feedbackstr = $this->format_feedback($userdata->feedbacks[$itemid]);
|
$feedbackstr = $this->format_feedback($userdata->feedbacks[$itemid]);
|
||||||
fwrite($handle, "\t\t<feedback>$feedbackstr</feedback>\n");
|
fwrite($handle, "\t\t<feedback>$feedbackstr</feedback>\n");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue