Class for converting attempt data for randomsamatch questions when upgrading attempts to the new question engine.
More...
|
| compare_answers ($answer1, $answer2) |
|
| discard () |
|
| is_blank_answer ($state) |
|
| load_question ($questionid) |
|
| question_summary () |
|
| response_summary ($state) |
|
| right_answer () |
|
| set_data_elements_for_step ($state, &$data) |
|
| set_first_step_data_elements ($state, &$data) |
|
| supply_missing_first_step_data (&$data) |
|
| was_answered ($state) |
|
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
-
The documentation for this class was generated from the following file: