|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| recode_response ($questionid, $sequencenumber, array $response) | |
| recode_legacy_state_answer ($state) | |
restore plugin class that provides the necessary information needed to restore one calculatedmulti qtype plugin.
Definition at line 38 of file restore_qtype_calculatedmulti_plugin.class.php.
| recode_legacy_state_answer | ( | $ | state | ) |
Given one question_states record, return the answer recoded pointing to all the restored stuff for calculatedmulti questions
answer format is datasetxx-yy:zz, where xx is the itemnumber in the dataset (doesn't need conversion), and both yy and zz are two (hypen speparated) lists of comma separated question_answers, the first to specify the order of the answers and the second to specify the responses.
in fact, this qtype behaves exactly like the multichoice one, so we'll delegate recoding of those yy:zz to it
Reimplemented from restore_qtype_plugin.
Definition at line 57 of file restore_qtype_calculatedmulti_plugin.class.php.
| recode_response | ( | $ | questionid, |
| $ | sequencenumber, | ||
| array $ | response | ||
| ) |
Do any re-coding necessary in the student response.
| int | $questionid | the new id of the question |
| int | $sequencenumber | of the step within the qusetion attempt. |
| array | the response data from the backup. |
Reimplemented from restore_qtype_plugin.
Definition at line 40 of file restore_qtype_calculatedmulti_plugin.class.php.