MDL-46599 gradebook: Add last exported date column on ODS and XLS export formats
This commit is contained in:
@@ -76,6 +76,8 @@ class grade_export_ods extends grade_export {
|
||||
$myxls->write_string(0, $pos++, $this->format_column_name($grade_item, true));
|
||||
}
|
||||
}
|
||||
// Last downloaded column header.
|
||||
$myxls->write_string(0, $pos++, get_string('timeexported', 'gradeexport_ods'));
|
||||
|
||||
// Print all the lines of data.
|
||||
$i = 0;
|
||||
@@ -117,6 +119,8 @@ class grade_export_ods extends grade_export {
|
||||
$myxls->write_string($i, $j++, $this->format_feedback($userdata->feedbacks[$itemid]));
|
||||
}
|
||||
}
|
||||
// Time exported.
|
||||
$myxls->write_string($i, $j++, time());
|
||||
}
|
||||
$gui->close();
|
||||
$geub->close();
|
||||
|
||||
@@ -26,3 +26,4 @@
|
||||
$string['pluginname'] = 'OpenDocument spreadsheet';
|
||||
$string['ods:publish'] = 'Publish ODS grade export';
|
||||
$string['ods:view'] = 'Use OpenDocument grade export';
|
||||
$string['timeexported'] = 'Last downloaded from this course';
|
||||
@@ -73,6 +73,8 @@ class grade_export_xls extends grade_export {
|
||||
$myxls->write_string(0, $pos++, $this->format_column_name($grade_item, true));
|
||||
}
|
||||
}
|
||||
// Last downloaded column header.
|
||||
$myxls->write_string(0, $pos++, get_string('timeexported', 'gradeexport_xls'));
|
||||
|
||||
// Print all the lines of data.
|
||||
$i = 0;
|
||||
@@ -111,6 +113,8 @@ class grade_export_xls extends grade_export {
|
||||
$myxls->write_string($i, $j++, $this->format_feedback($userdata->feedbacks[$itemid]));
|
||||
}
|
||||
}
|
||||
// Time exported.
|
||||
$myxls->write_string($i, $j++, time());
|
||||
}
|
||||
$gui->close();
|
||||
$geub->close();
|
||||
|
||||
@@ -24,5 +24,6 @@
|
||||
*/
|
||||
|
||||
$string['pluginname'] = 'Excel spreadsheet';
|
||||
$string['timeexported'] = 'Last downloaded from this course';
|
||||
$string['xls:publish'] = 'Publish XLS grade export';
|
||||
$string['xls:view'] = 'Use Excel grade export';
|
||||
|
||||
Reference in New Issue
Block a user