|
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_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) | |
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.
| 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 152 of file behaviour.php.

| do_grading | ( | question_attempt_step $ | responsesstep, |
| question_attempt_pending_step $ | pendingstep | ||
| ) | [protected] |
Definition at line 117 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 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.
Reimplemented from qbehaviour_immediatefeedback.
Definition at line 52 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_immediatefeedback.
Definition at line 48 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 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.
Reimplemented from qbehaviour_immediatefeedback.
Definition at line 62 of file behaviour.php.

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

| process_submit | ( | question_attempt_pending_step $ | pendingstep | ) |
Reimplemented from qbehaviour_immediatefeedback.
Definition at line 94 of file behaviour.php.

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

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