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


Public Member Functions | |
| process_multichoice ($data) | |
| recode_response ($questionid, $sequencenumber, array $response) | |
| recode_legacy_state_answer ($state) | |
Static Public Member Functions | |
| static | define_decode_contents () |
Protected Member Functions | |
| define_question_plugin_structure () | |
| recode_choice_order ($order) | |
restore plugin class that provides the necessary information needed to restore one multichoice qtype plugin
Definition at line 35 of file restore_qtype_multichoice_plugin.class.php.
| static define_decode_contents | ( | ) | [static] |
Return the contents of this qtype to be processed by the links decoder
Definition at line 161 of file restore_qtype_multichoice_plugin.class.php.
| define_question_plugin_structure | ( | ) | [protected] |
Returns the paths to be handled by the plugin at question level
Definition at line 40 of file restore_qtype_multichoice_plugin.class.php.

| process_multichoice | ( | $ | data | ) |
Process the qtype/multichoice element
Definition at line 59 of file restore_qtype_multichoice_plugin.class.php.

| recode_choice_order | ( | $ | order | ) | [protected] |
Recode the choice order as stored in the response.
| string | $order | the original order. |
Definition at line 104 of file restore_qtype_multichoice_plugin.class.php.


| recode_legacy_state_answer | ( | $ | state | ) |
Given one question_states record, return the answer recoded pointing to all the restored stuff for multichoice questions
answer 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. Note the order list (the first one) can be optional
Reimplemented from restore_qtype_plugin.
Definition at line 122 of file restore_qtype_multichoice_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 92 of file restore_qtype_multichoice_plugin.class.php.
