MDL-24408 extra_answer_fields: save_question_answers function
authorOleg Sychev <oasychev@gmail.com>
Fri, 24 Jan 2014 21:18:41 +0000 (00:18 +0300)
committerOleg Sychev <oasychev@gmail.com>
Thu, 27 Mar 2014 21:27:03 +0000 (00:27 +0300)
commitf0c6c18189377076b0bd51f79799baf1d1e58510
tree6d5a5b7bab0030efa90fa5ec48c33c9df6301fab
parenta68207b664abded16c315f1227afbf1c2a38cf2e
MDL-24408 extra_answer_fields: save_question_answers function

question_type::save_question_answers function added, supporting
saving answers and extra answer fields. It can be called from
save_question_options function for the questions, using
question_answers table. Special functions created for overloading
so that every question could tune it to it's own form.

Shortanswer qtype save_question_options() converted as a proof of
concept and for testing purposes.
question/type/questiontypebase.php
question/type/shortanswer/questiontype.php