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

Public Member Functions

 grade (array $response)
 get_correct_answer ()

Detailed Description

This question_grading_strategy interface. Used to share grading code between questions that that subclass question_graded_by_strategy.

Definition at line 870 of file questionbase.php.


Member Function Documentation

Returns:
question_answer an answer that contains the a response that would get full marks.

Implemented in question_first_matching_answer_grading_strategy.

grade ( array response)

Return a question answer that describes the outcome (fraction and feeback) for a particular respons.

Parameters:
array$responsethe response.
Returns:
question_answer the answer describing the outcome.

Implemented in question_first_matching_answer_grading_strategy.


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