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


Public Member Functions | |
| make_behaviour (question_attempt $qa, $preferredbehaviour) | |
This class represents a question that can be graded automatically with countback grading in interactive mode.
Definition at line 638 of file questionbase.php.
| make_behaviour | ( | question_attempt $ | qa, |
| $ | preferredbehaviour | ||
| ) |
Creat the appropriate behaviour for an attempt at this quetsion, given the desired (archetypal) behaviour.
This default implementation will suit most normal graded questions.
If your question is of a patricular type, then it may need to do something different. For example, if your question can only be graded manually, then it should probably return a manualgraded behaviour, irrespective of what is asked for.
If your question wants to do somthing especially complicated is some situations, then you may wish to return a particular behaviour related to the one asked for. For example, you migth want to return a qbehaviour_interactive_adapted_for_myqtype.
| question_attempt | $qa | the attempt we are creating an behaviour for. |
| string | $preferredbehaviour | the requested type of behaviour. |
Reimplemented from question_definition.
Definition at line 642 of file questionbase.php.
