Moodle  2.2.1
http://www.collinsharper.com
question_automatically_gradable_with_countback Interface Reference
Inheritance diagram for question_automatically_gradable_with_countback:
Collaboration diagram for question_automatically_gradable_with_countback:

Public Member Functions

 compute_final_grade ($responses, $totaltries)

Detailed Description

Interface that a question_definition must implement to be usable by the interactivecountback behaviour.

Definition at line 527 of file questionbase.php.


Member Function Documentation

compute_final_grade ( responses,
totaltries 
)

Work out a final grade for this attempt, taking into account all the tries the student made.

Parameters:
array$responsesthe response for each try. Each element of this array is a response array, as would be passed to grade_response(). There may be between 1 and $totaltries responses.
int$totaltriesThe maximum number of tries allowed.
Returns:
numeric the fraction that should be awarded for this sequence of response.

Implemented in qtype_match_question.


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