Class for converting attempt data for randomsamatch questions when upgrading attempts to the new question engine.
More...
|
| explode_answer ($answer) |
| Explode the answer saved as a string in state.
|
|
| lookup_choice ($choice) |
| Find the index corresponding to a choice.
|
|
| make_summary ($pairs) |
|
| to_text ($html) |
|
|
array | $choiceorder |
| shuffled choice indexes.
|
|
array | $choices |
| of choices that can be matched to each stem.
|
|
array | $flippedchoiceorder |
| flipped version of the choiceorder array.
|
|
question_engine_assumption_logger | $logger |
|
question_engine_attempt_upgrader | $qeupdater |
|
object | $question |
| the question definition data.
|
|
array | $right |
| index of the right choice for each stem.
|
|
array | $rightanswer |
| of right answer for each stem.
|
|
array | $rightanswerid |
| id of the right answer for each stem (used by lookup_choice).
|
|
array | $stemformat |
| of question stems format.
|
|
array | $stemorder |
| shuffled stem indexes.
|
|
array | $stems |
| of question stems.
|
|
question_behaviour_attempt_updater | $updater |
|
Class for converting attempt data for randomsamatch questions when upgrading attempts to the new question engine.
This class is used by the code in question/engine/upgrade/upgradelib.php.
- Copyright
- 2013 Jean-Michel Vedrine
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ explode_answer()
qtype_randomsamatch_qe2_attempt_updater::explode_answer |
( |
| $answer | ) |
|
|
protected |
Explode the answer saved as a string in state.
- Parameters
-
string | $answer | comma separated list of dash separated pairs |
- Return values
-
◆ lookup_choice()
qtype_randomsamatch_qe2_attempt_updater::lookup_choice |
( |
| $choice | ) |
|
|
protected |
Find the index corresponding to a choice.
- Parameters
-
- Return values
-
◆ question_summary()
qtype_randomsamatch_qe2_attempt_updater::question_summary |
( |
| ) |
|
◆ response_summary()
qtype_randomsamatch_qe2_attempt_updater::response_summary |
( |
| $state | ) |
|
◆ right_answer()
qtype_randomsamatch_qe2_attempt_updater::right_answer |
( |
| ) |
|
◆ set_data_elements_for_step()
qtype_randomsamatch_qe2_attempt_updater::set_data_elements_for_step |
( |
| $state, |
|
|
& | $data ) |
◆ set_first_step_data_elements()
qtype_randomsamatch_qe2_attempt_updater::set_first_step_data_elements |
( |
| $state, |
|
|
& | $data ) |
◆ supply_missing_first_step_data()
qtype_randomsamatch_qe2_attempt_updater::supply_missing_first_step_data |
( |
& | $data | ) |
|
◆ was_answered()
qtype_randomsamatch_qe2_attempt_updater::was_answered |
( |
| $state | ) |
|
The documentation for this class was generated from the following file:
- question/type/randomsamatch/db/upgradelib.php