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

Public Member Functions

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

Static Public Member Functions

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)
 do_grading (question_attempt_step $responsesstep, question_attempt_pending_step $pendingstep)

Detailed Description

Question behaviour for immediate feedback with CBM.

Each question has a submit button next to it along with some radio buttons to input a certainly, that is, how sure they are that they are right. The student can submit their answer at any time for immediate feedback. Once the qustion is submitted, it is not possible for the student to change their answer any more. The student's degree of certainly 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 152 of file behaviour.php.

Here is the call graph for this function:

do_grading ( question_attempt_step responsesstep,
question_attempt_pending_step pendingstep 
) [protected]

Definition at line 117 of file behaviour.php.

Here is the call graph for this function:

Here is the caller 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 67 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 qbehaviour_immediatefeedback.

Definition at line 52 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_immediatefeedback.

Definition at line 48 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 74 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_immediatefeedback.

Definition at line 62 of file behaviour.php.

Here is the call graph for this function:

is_complete_response ( pendingstep) [protected]

Definition at line 89 of file behaviour.php.

is_same_response ( pendingstep) [protected]

Definition at line 83 of file behaviour.php.

Reimplemented from qbehaviour_immediatefeedback.

Definition at line 108 of file behaviour.php.

Here is the call graph for this function:

Reimplemented from qbehaviour_immediatefeedback.

Definition at line 94 of file behaviour.php.

Here is the call graph for this function:

Reimplemented from qbehaviour_immediatefeedback.

Definition at line 143 of file behaviour.php.

Here is the call graph for this function:


Field Documentation

Reimplemented from qbehaviour_immediatefeedback.

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