Moodle  2.2.1
http://www.collinsharper.com
restore_qtype_calculatedmulti_plugin Class Reference
Inheritance diagram for restore_qtype_calculatedmulti_plugin:
Collaboration diagram for restore_qtype_calculatedmulti_plugin:

Public Member Functions

 recode_response ($questionid, $sequencenumber, array $response)
 recode_legacy_state_answer ($state)

Detailed Description

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.


Member Function Documentation

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.

Parameters:
int$questionidthe new id of the question
int$sequencenumberof the step within the qusetion attempt.
arraythe response data from the backup.
Returns:
array the recoded response.

Reimplemented from restore_qtype_plugin.

Definition at line 40 of file restore_qtype_calculatedmulti_plugin.class.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations