public function get_data() { $data = parent::get_data(); if ($data) { $editoroptions = $this->get_editor_options(); switch ($this->_customdata->assignment->assignmenttype) { case 'team': case 'upload': case 'uploadsingle': $data = file_postupdate_standard_filemanager($data, 'files', $editoroptions, $this->_customdata->context, 'mod_assignment', 'response', $this->_customdata->teamid); break; default: break; } $data = file_postupdate_standard_editor($data, 'submissioncomment', $editoroptions, $this->_customdata->context, $editoroptions['component'], $editoroptions['filearea'], $this->_customdata->teamid); } return $data; }