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

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

Detailed Description

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.


Constructor & Destructor Documentation

__construct ( quiz,
attempt,
question,
qsession,
qstates,
logger,
qeupdater 
)

Definition at line 78 of file behaviourconverters.php.


Member Function Documentation

add_step ( step) [protected]

Definition at line 167 of file behaviourconverters.php.

Here is the caller graph for this function:

convert_steps ( ) [protected]

Definition at line 148 of file behaviourconverters.php.

Here is the call graph for this function:

Here is the caller graph for this function:

create_missing_first_step ( ) [protected]

Definition at line 110 of file behaviourconverters.php.

Here is the caller graph for this function:

discard ( )

Definition at line 88 of file behaviourconverters.php.

discard_last_state ( ) [protected]

Definition at line 173 of file behaviourconverters.php.

Here is the caller graph for this function:

finish_up ( ) [protected]

Reimplemented in qbehaviour_adaptive_converter.

Definition at line 164 of file behaviourconverters.php.

Here is the caller graph for this function:

Definition at line 104 of file behaviourconverters.php.

Here is the call graph for this function:

graded_state_for_fraction ( fraction) [protected]

Definition at line 292 of file behaviourconverters.php.

Here is the caller graph for this function:

initialise_qa ( ) [protected]

Definition at line 129 of file behaviourconverters.php.

Here is the call graph for this function:

Here is the caller graph for this function:

make_qtype_updater ( ) [protected]
Parameters:
object$questiona question definition
Returns:
qtype_updater

Definition at line 264 of file behaviourconverters.php.

Here is the caller graph for this function:

make_step ( state) [protected]

Definition at line 312 of file behaviourconverters.php.

Here is the caller graph for this function:

manual_graded_state_for_fraction ( fraction) [protected]

Definition at line 302 of file behaviourconverters.php.

Here is the caller graph for this function:

process0 ( step,
state 
) [protected]

Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.

Definition at line 182 of file behaviourconverters.php.

Here is the call graph for this function:

process1 ( step,
state 
) [protected]

Definition at line 206 of file behaviourconverters.php.

Here is the call graph for this function:

process2 ( step,
state 
) [protected]

Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.

Definition at line 210 of file behaviourconverters.php.

Here is the call graph for this function:

Here is the caller graph for this function:

process3 ( step,
state 
) [protected]

Reimplemented in qbehaviour_adaptive_converter, and qbehaviour_informationitem_converter.

Definition at line 219 of file behaviourconverters.php.

Here is the call graph for this function:

process4 ( step,
state 
) [protected]

Definition at line 223 of file behaviourconverters.php.

Here is the call graph for this function:

process5 ( step,
state 
) [protected]

Definition at line 227 of file behaviourconverters.php.

Here is the call graph for this function:

process6 ( step,
state 
) [abstract, protected]
process8 ( step,
state 
) [protected]

Reimplemented in qbehaviour_informationitem_converter.

Definition at line 234 of file behaviourconverters.php.

Here is the call graph for this function:

process9 ( step,
state 
) [protected]

Definition at line 238 of file behaviourconverters.php.

Here is the call graph for this function:

process_state ( state) [protected]

Definition at line 158 of file behaviourconverters.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 121 of file behaviourconverters.php.

Here is the call graph for this function:

to_text ( html)

Definition at line 288 of file behaviourconverters.php.

Here is the call graph for this function:

unexpected_event ( state) [protected]

Definition at line 178 of file behaviourconverters.php.

Here is the caller graph for this function:


Field Documentation

$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.


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