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

Public Member Functions | |
| __construct ($quiz, $attempt, $question, $qsession, $qstates, $logger, $qeupdater) | |
| discard () | |
| get_converted_qa () | |
| supply_missing_qa () | |
| to_text ($html) | |
Data Fields | |
| $qa | |
Protected Member Functions | |
| behaviour_name () | |
| create_missing_first_step () | |
| initialise_qa () | |
| convert_steps () | |
| process_state ($state) | |
| finish_up () | |
| add_step ($step) | |
| discard_last_state () | |
| unexpected_event ($state) | |
| process0 ($step, $state) | |
| process1 ($step, $state) | |
| process2 ($step, $state) | |
| process3 ($step, $state) | |
| process4 ($step, $state) | |
| process5 ($step, $state) | |
| process6 ($step, $state) | |
| process7 ($step, $state) | |
| process8 ($step, $state) | |
| process9 ($step, $state) | |
| make_qtype_updater () | |
| graded_state_for_fraction ($fraction) | |
| manual_graded_state_for_fraction ($fraction) | |
| make_step ($state) | |
Protected Attributes | |
| $qtypeupdater | |
| $logger | |
| $qeupdater | |
| $quiz | |
| $attempt | |
| $question | |
| $qsession | |
| $qstates | |
| $sequencenumber | |
| $finishstate | |
Base class for managing the upgrade of a question using a particular behaviour.
This class takes as input: 1. Various backgroud data like $quiz, $attempt and $question. 2. The data about the question session to upgrade $qsession and $qstates. Working through that data, it builds up 3. The equivalent new data $qa. This has roughly the same data as a question_attempt object belonging to the new question engine would have, but $this->qa is built up from stdClass objects.
Definition at line 45 of file behaviourconverters.php.
| __construct | ( | $ | quiz, |
| $ | attempt, | ||
| $ | question, | ||
| $ | qsession, | ||
| $ | qstates, | ||
| $ | logger, | ||
| $ | qeupdater | ||
| ) |
Definition at line 78 of file behaviourconverters.php.
| add_step | ( | $ | step | ) | [protected] |
| behaviour_name | ( | ) | [abstract, protected] |
Reimplemented in qbehaviour_adaptivenopenalty_converter, qbehaviour_adaptive_converter, qbehaviour_informationitem_converter, qbehaviour_manualgraded_converter, and qbehaviour_deferredfeedback_converter.

| convert_steps | ( | ) | [protected] |
Definition at line 148 of file behaviourconverters.php.


| create_missing_first_step | ( | ) | [protected] |
| discard | ( | ) |
Definition at line 88 of file behaviourconverters.php.
| discard_last_state | ( | ) | [protected] |
| finish_up | ( | ) | [protected] |
Reimplemented in qbehaviour_adaptive_converter.
Definition at line 164 of file behaviourconverters.php.

| get_converted_qa | ( | ) |
| graded_state_for_fraction | ( | $ | fraction | ) | [protected] |
| initialise_qa | ( | ) | [protected] |
Definition at line 129 of file behaviourconverters.php.


| make_qtype_updater | ( | ) | [protected] |
| object | $question | a question definition |
Definition at line 264 of file behaviourconverters.php.

| make_step | ( | $ | state | ) | [protected] |
| manual_graded_state_for_fraction | ( | $ | fraction | ) | [protected] |
| process0 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.
Definition at line 182 of file behaviourconverters.php.

| process1 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
| process2 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.
Definition at line 210 of file behaviourconverters.php.


| process3 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.
Definition at line 219 of file behaviourconverters.php.

| process4 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
| process5 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
| process6 | ( | $ | step, |
| $ | state | ||
| ) | [abstract, protected] |
Reimplemented in qbehaviour_adaptive_converter, qbehaviour_informationitem_converter, qbehaviour_manualgraded_converter, and qbehaviour_deferredfeedback_converter.

| process7 | ( | $ | step, |
| $ | state | ||
| ) | [abstract, protected] |
| process8 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
Reimplemented in qbehaviour_informationitem_converter.
Definition at line 234 of file behaviourconverters.php.

| process9 | ( | $ | step, |
| $ | state | ||
| ) | [protected] |
| process_state | ( | $ | state | ) | [protected] |
Definition at line 158 of file behaviourconverters.php.


| to_text | ( | $ | html | ) |
| unexpected_event | ( | $ | state | ) | [protected] |
$attempt [protected] |
Definition at line 62 of file behaviourconverters.php.
$finishstate [protected] |
Definition at line 76 of file behaviourconverters.php.
$logger [protected] |
Definition at line 49 of file behaviourconverters.php.
| $qa |
Definition at line 57 of file behaviourconverters.php.
$qeupdater [protected] |
Definition at line 51 of file behaviourconverters.php.
$qsession [protected] |
Definition at line 66 of file behaviourconverters.php.
$qstates [protected] |
Definition at line 68 of file behaviourconverters.php.
$qtypeupdater [protected] |
Definition at line 47 of file behaviourconverters.php.
$question [protected] |
Definition at line 64 of file behaviourconverters.php.
$quiz [protected] |
Definition at line 60 of file behaviourconverters.php.
$sequencenumber [protected] |
Definition at line 74 of file behaviourconverters.php.