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


Public Member Functions | |
| is_compatible_question (question_definition $question) | |
Data Fields | |
| const | IS_ARCHETYPAL = false |
Protected Member Functions | |
| adjust_fraction ($fraction, question_attempt_pending_step $pendingstep) | |
Question behaviour for interactive mode with count-back scoring.
As an example, suppose we have a matching question with 4 parts, and 3 tries (penalty 1/3), and the question is worth 12 marks (so, 3 marks for each part). Suppose also that:
Of course, the details of the grading are acutally up to the particular question type. The point is that the final grade can take into account all of the tries the student made.
Definition at line 64 of file behaviour.php.
| adjust_fraction | ( | $ | fraction, |
| question_attempt_pending_step $ | pendingstep | ||
| ) | [protected] |
Reimplemented from qbehaviour_interactive.
Definition at line 71 of file behaviour.php.

| is_compatible_question | ( | question_definition $ | question | ) |
Some behaviours can only work with certing types of question. This method allows the behaviour to verify that a question is compatible.
This implementation is only provided for backwards-compatibility. You should override this method if you are implementing a behaviour.
| question_definition | $question | the question. |
Reimplemented from qbehaviour_interactive.
Definition at line 67 of file behaviour.php.
| const IS_ARCHETYPAL = false |
Reimplemented from qbehaviour_interactive.
Definition at line 65 of file behaviour.php.