Help: How to save question user response?

Re: Help: How to save question user response?

by Tim Hunt -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
You don't need to actually save the responses, the core question system handles that for you, providing you till it what the response comprises. You do that with the get_expected_data method https://github.com/moodle/moodle/blob/master/question/type/questionbase.php#L293. Probably worth looking at some examples of that in different question types to see typical implementations.