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

Public Member Functions

 get_min_fraction ()
 get_expected_data ()
 get_right_answer_summary ()
 get_correct_response ()
 process_finish (question_attempt_pending_step $pendingstep)
 summarise_action (question_attempt_step $step)

Static Public Member Functions

static get_unused_display_options ()
static adjust_random_guess_score ($fraction)

Data Fields

const IS_ARCHETYPAL = true

Protected Member Functions

 get_our_resume_data ()
 is_same_response ($pendingstep)
 is_complete_response ($pendingstep)

Detailed Description

Question behaviour for deferred feedback with certainty based marking.

The student enters their response during the attempt, along with a certainty, that is, how sure they are that they are right, and it is saved. Later, when the whole attempt is finished, their answer is graded. Their degree of certainty affects their score.

Definition at line 45 of file behaviour.php.


Member Function Documentation

static adjust_random_guess_score ( fraction) [static]

Adjust a random guess score for a question using this model. You have to do this without knowing details of the specific question, or which usage it is in.

Parameters:
number$fractionthe random guess score from the question type.
Returns:
number the adjusted fraction.

Reimplemented from question_behaviour.

Definition at line 126 of file behaviour.php.

Here is the call graph for this function:

Return an array of any im variables, and the value required to get full marks.

Returns:
array variable name => value.

Reimplemented from question_behaviour.

Definition at line 69 of file behaviour.php.

Return an array of the behaviour variables that could be submitted as part of a question of this type, with their types, so they can be properly cleaned.

Returns:
array variable name => PARAM_... constant.

Reimplemented from question_behaviour.

Definition at line 57 of file behaviour.php.

What is the minimum fraction that can be scored for this question. Normally this will be based on $this->question->get_min_fraction(), but may be modified in some way by the model.

Returns:
number the minimum fraction when this question is attempted under this model.

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 53 of file behaviour.php.

Here is the call graph for this function:

get_our_resume_data ( ) [protected]

Used by start_based_on() to get the data needed to start a new attempt from the point this attempt has go to.

Returns:
unknown_type

Reimplemented from question_behaviour.

Definition at line 76 of file behaviour.php.

Generate a brief, plain-text, summary of the correct answer to this question. This is used by various reports, and can also be useful when testing. This method will return null if such a summary is not possible, or inappropriate.

Returns:
string|null a plain text summary of the right answer to this question.

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 64 of file behaviour.php.

static get_unused_display_options ( ) [static]

'Override' this method if there are some display options that do not make sense 'during the attempt'.

Returns:
array of question_display_options field names, that are not relevant to this behaviour before a 'finish' action.

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 48 of file behaviour.php.

is_complete_response ( pendingstep) [protected]

Definition at line 91 of file behaviour.php.

is_same_response ( pendingstep) [protected]

Definition at line 85 of file behaviour.php.

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 96 of file behaviour.php.

Here is the call graph for this function:

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 117 of file behaviour.php.

Here is the call graph for this function:


Field Documentation

Reimplemented from qbehaviour_deferredfeedback.

Definition at line 46 of file behaviour.php.


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