diff --git a/mod/feedback/classes/external/feedback_item_exporter.php b/mod/feedback/classes/external/feedback_item_exporter.php index f45a5dc273813..fde9fc52e9685 100644 --- a/mod/feedback/classes/external/feedback_item_exporter.php +++ b/mod/feedback/classes/external/feedback_item_exporter.php @@ -56,6 +56,12 @@ protected static function define_properties() { 'type' => PARAM_RAW, 'description' => 'The item name.', ), + 'nameformat' => [ + 'choices' => [FORMAT_HTML, FORMAT_MOODLE, FORMAT_PLAIN, FORMAT_MARKDOWN], + 'type' => PARAM_INT, + 'description' => 'The format of the item name.', + 'default' => FORMAT_HTML, + ], 'label' => array( 'type' => PARAM_NOTAGS, 'description' => 'The item label.', @@ -64,6 +70,12 @@ protected static function define_properties() { 'type' => PARAM_RAW, 'description' => 'The text describing the item or the available possible answers.', ), + 'presentationformat' => [ + 'choices' => [FORMAT_HTML, FORMAT_MOODLE, FORMAT_PLAIN, FORMAT_MARKDOWN], + 'type' => PARAM_INT, + 'description' => 'The format of the text describing the item or the available possible answers.', + 'default' => FORMAT_HTML, + ], 'typ' => array( 'type' => PARAM_ALPHA, 'description' => 'The type of the item.', @@ -158,7 +170,8 @@ protected function get_format_parameters_for_name() { return [ 'component' => 'mod_feedback', 'filearea' => 'item', - 'itemid' => $this->data->id + 'itemid' => $this->data->id, + 'options' => ['noclean' => true, 'para' => false], ]; } @@ -171,7 +184,8 @@ protected function get_format_parameters_for_presentation() { return [ 'component' => 'mod_feedback', 'filearea' => 'item', - 'itemid' => $this->data->id + 'itemid' => $this->data->id, + 'options' => ['noclean' => true, 'para' => false], ]; } }