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

Public Member Functions

 question_summary ()
 right_answer ()
 response_summary ($state)
 was_answered ($state)
 set_first_step_data_elements ($state, &$data)
 supply_missing_first_step_data (&$data)
 set_data_elements_for_step ($state, &$data)

Protected Member Functions

 explode_answer ($answer)
 make_summary ($pairs)
 lookup_choice ($choice)

Protected Attributes

 $stems
 $choices
 $right
 $stemorder
 $choiceorder
 $flippedchoiceorder

Detailed Description

Class for converting attempt data for match questions when upgrading attempts to the new question engine.

This class is used by the code in question/engine/upgrade/upgradelib.php.

Definition at line 39 of file upgradelib.php.


Member Function Documentation

explode_answer ( answer) [protected]

Definition at line 78 of file upgradelib.php.

Here is the caller graph for this function:

lookup_choice ( choice) [protected]

Definition at line 99 of file upgradelib.php.

Here is the caller graph for this function:

make_summary ( pairs) [protected]

Definition at line 91 of file upgradelib.php.

Here is the caller graph for this function:

Reimplemented from question_qtype_attempt_updater.

Definition at line 47 of file upgradelib.php.

Here is the call graph for this function:

response_summary ( state)

Reimplemented from question_qtype_attempt_updater.

Definition at line 112 of file upgradelib.php.

Here is the call graph for this function:

Reimplemented from question_qtype_attempt_updater.

Definition at line 70 of file upgradelib.php.

Here is the call graph for this function:

set_data_elements_for_step ( state,
&$  data 
)

Reimplemented from question_qtype_attempt_updater.

Definition at line 174 of file upgradelib.php.

Here is the call graph for this function:

set_first_step_data_elements ( state,
&$  data 
)

Reimplemented from question_qtype_attempt_updater.

Definition at line 150 of file upgradelib.php.

Here is the call graph for this function:

Reimplemented from question_qtype_attempt_updater.

Definition at line 167 of file upgradelib.php.

was_answered ( state)

Reimplemented from question_qtype_attempt_updater.

Definition at line 140 of file upgradelib.php.

Here is the call graph for this function:


Field Documentation

$choiceorder [protected]

Definition at line 44 of file upgradelib.php.

$choices [protected]

Definition at line 41 of file upgradelib.php.

$flippedchoiceorder [protected]

Definition at line 45 of file upgradelib.php.

$right [protected]

Definition at line 42 of file upgradelib.php.

$stemorder [protected]

Definition at line 43 of file upgradelib.php.

$stems [protected]

Definition at line 40 of file upgradelib.php.


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