Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
question_grading_strategy Interface Reference

This question_grading_strategy interface. More...

Inheritance diagram for question_grading_strategy:
question_first_matching_answer_grading_strategy

Public Member Functions

 get_correct_answer ()
 
 grade (array $response)
 Return a question answer that describes the outcome (fraction and feeback) for a particular respons. More...
 

Detailed Description

This question_grading_strategy interface.

Used to share grading code between questions that that subclass question_graded_by_strategy.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ get_correct_answer()

question_grading_strategy::get_correct_answer ( )
Return values
question_answeran answer that contains the a response that would get full marks.

Implemented in question_first_matching_answer_grading_strategy.

◆ grade()

question_grading_strategy::grade ( array  $response)

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

Parameters
array$responsethe response.
Return values
question_answerthe answer describing the outcome.

Implemented in question_first_matching_answer_grading_strategy.


The documentation for this interface was generated from the following file: