mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
15 lines
No EOL
439 B
PHP
Executable file
15 lines
No EOL
439 B
PHP
Executable file
<?php
|
|
|
|
require_once("../../../config.php");
|
|
require_once($CFG->dirroot.'/grade/export/lib.php');
|
|
require_once('grade_export_ods.php');
|
|
|
|
$id = required_param('id', PARAM_INT); // course id
|
|
$itemids = explode(",", required_param('itemids', PARAM_NOTAGS));
|
|
$feedback = optional_param('feedback', '', PARAM_ALPHA);
|
|
|
|
// print all the exported data here
|
|
$export = new grade_export_ods($id, $itemids);
|
|
$export->print_grades($feedback);
|
|
|
|
?>
|