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


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) | |
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.
| 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.
| number | $fraction | the random guess score from the question type. |
Reimplemented from question_behaviour.
Definition at line 126 of file behaviour.php.

Return an array of any im variables, and the value required to get full marks.
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.
Reimplemented from question_behaviour.
Definition at line 57 of file behaviour.php.
| get_min_fraction | ( | ) |
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.
Reimplemented from qbehaviour_deferredfeedback.
Definition at line 53 of file behaviour.php.

| 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.
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.
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'.
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.
| process_finish | ( | question_attempt_pending_step $ | pendingstep | ) |
Reimplemented from qbehaviour_deferredfeedback.
Definition at line 96 of file behaviour.php.

| summarise_action | ( | question_attempt_step $ | step | ) |
Reimplemented from qbehaviour_deferredfeedback.
Definition at line 117 of file behaviour.php.

| const IS_ARCHETYPAL = true |
Reimplemented from qbehaviour_deferredfeedback.
Definition at line 46 of file behaviour.php.