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


Public Member Functions | |
| process_matchoptions ($data) | |
| process_match ($data) | |
| after_execute_question () | |
| 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_match_sub_order ($order) | |
restore plugin class that provides the necessary information needed to restore one match qtype plugin
Definition at line 35 of file restore_qtype_match_plugin.class.php.
This method is executed once the whole restore_structure_step, more exactly (restore_create_categories_and_questions) has ended processing the whole xml structure. Its name is: "after_execute_" + connectionpoint ("question")
For match qtype we use it to restore the subquestions column, containing one list of question_match_sub ids
Definition at line 158 of file restore_qtype_match_plugin.class.php.

| static define_decode_contents | ( | ) | [static] |
Return the contents of this qtype to be processed by the links decoder
Definition at line 229 of file restore_qtype_match_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_match_plugin.class.php.

| process_match | ( | $ | data | ) |
Process the qtype/matches/match element
Definition at line 107 of file restore_qtype_match_plugin.class.php.

| process_matchoptions | ( | $ | data | ) |
Process the qtype/matchoptions element
Definition at line 61 of file restore_qtype_match_plugin.class.php.

| recode_legacy_state_answer | ( | $ | state | ) |
Given one question_states record, return the answer recoded pointing to all the restored stuff for match questions
answer is one comma separated list of hypen separated pairs containing question_match_sub->id and question_match_sub->code
Reimplemented from restore_qtype_plugin.
Definition at line 198 of file restore_qtype_match_plugin.class.php.

| recode_match_sub_order | ( | $ | order | ) | [protected] |
Recode the choice order as stored in the response.
| string | $order | the original order. |
Definition at line 216 of file restore_qtype_match_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 181 of file restore_qtype_match_plugin.class.php.
