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

Public Member Functions

 make_behaviour (question_attempt $qa, $preferredbehaviour)

Detailed Description

This class represents a question that can be graded automatically with countback grading in interactive mode.

Definition at line 638 of file questionbase.php.


Member Function Documentation

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.

Parameters:
question_attempt$qathe attempt we are creating an behaviour for.
string$preferredbehaviourthe requested type of behaviour.
Returns:
question_behaviour the new behaviour object.

Reimplemented from question_definition.

Definition at line 642 of file questionbase.php.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations