From dd61723edbeb29af0b7f5804109c2e158f107293 Mon Sep 17 00:00:00 2001 From: Simey Lameze Date: Tue, 14 Feb 2017 13:14:51 +0800 Subject: [PATCH] MDL-57446 core_course: add required fields to exporter Part of MDL-55611 epic. --- course/classes/external/course_summary_exporter.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/course/classes/external/course_summary_exporter.php b/course/classes/external/course_summary_exporter.php index afc96f34411..7a70c12cdf1 100644 --- a/course/classes/external/course_summary_exporter.php +++ b/course/classes/external/course_summary_exporter.php @@ -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, + ), ); } }