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


Public Member Functions | |
| required_question_definition_type () | |
| process_save (question_attempt_pending_step $pendingstep) | |
| summarise_submit (question_attempt_step $step) | |
| summarise_save (question_attempt_step $step) | |
| summarise_finish ($step) | |
Protected Member Functions | |
| is_same_response (question_attempt_step $pendingstep) | |
| is_complete_response (question_attempt_step $pendingstep) | |
A subclass of question_behaviour that implements a save action that is suitable for most questions that implement the question_manually_gradable interface.
Definition at line 529 of file behaviourbase.php.
| is_complete_response | ( | question_attempt_step $ | pendingstep | ) | [protected] |
Work out whether the response in $pendingstep represent a complete answer to the question. Normally this will call question_manually_gradable::is_complete_response, but some behaviours, for example the CBM ones, have their own parts to the response.
| question_attempt_step | $pendingstep | contains the new responses. |
Definition at line 554 of file behaviourbase.php.


| is_same_response | ( | question_attempt_step $ | pendingstep | ) | [protected] |
Work out whether the response in $pendingstep are significantly different from the last set of responses we have stored.
| question_attempt_step | $pendingstep | contains the new responses. |
Definition at line 540 of file behaviourbase.php.


| process_save | ( | question_attempt_pending_step $ | pendingstep | ) |
Implementation of processing a save action that should be suitable for most subclasses.
| question_attempt_pending_step | $pendingstep | a partially initialised step containing all the information about the action that is being peformed. |
Reimplemented in qbehaviour_interactive, qbehaviour_immediatefeedback, qbehaviour_adaptive, and qbehaviour_deferredfeedback.
Definition at line 565 of file behaviourbase.php.


Most behaviours can only work with question_definitions of a particular subtype, or that implement a particular interface. This method lets the behaviour document that. The type of question passed to the constructor is then checked against this type.
Reimplemented from question_behaviour.
Definition at line 530 of file behaviourbase.php.
| summarise_finish | ( | $ | step | ) |
Reimplemented from question_behaviour.
Definition at line 599 of file behaviourbase.php.

| summarise_save | ( | question_attempt_step $ | step | ) |
Definition at line 589 of file behaviourbase.php.


| summarise_submit | ( | question_attempt_step $ | step | ) |
Definition at line 584 of file behaviourbase.php.

