MDL-57446 core_course: add required fields to exporter
Part of MDL-55611 epic.
This commit is contained in:
committed by
Damyon Wiese
parent
084cabeb9f
commit
dd61723edb
+11
-1
@@ -43,6 +43,7 @@ class course_summary_exporter extends \core\external\exporter {
|
||||
protected function get_other_values(renderer_base $output) {
|
||||
return array(
|
||||
'viewurl' => (new moodle_url('/course/view.php', array('id' => $this->data->id)))->out(false)
|
||||
|
||||
);
|
||||
}
|
||||
|
||||
@@ -67,7 +68,16 @@ class course_summary_exporter extends \core\external\exporter {
|
||||
return array(
|
||||
'viewurl' => array(
|
||||
'type' => PARAM_URL,
|
||||
)
|
||||
),
|
||||
'summary' => array(
|
||||
'type' => PARAM_RAW,
|
||||
),
|
||||
'startdate' => array(
|
||||
'type' => PARAM_RAW,
|
||||
),
|
||||
'enddate' => array(
|
||||
'type' => PARAM_RAW,
|
||||
),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user