MDL-57446 core_course: add required fields to exporter
authorSimey Lameze <simey@moodle.com>
Tue, 14 Feb 2017 05:14:51 +0000 (13:14 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 3 Apr 2017 03:35:38 +0000 (11:35 +0800)
Part of MDL-55611 epic.

course/classes/external/course_summary_exporter.php

index afc96f3..7a70c12 100644 (file)
@@ -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,
+            ),
         );
     }
 }