Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
question_possible_response Class Reference

This class is used in the return value from question_type::get_possible_responses(). More...

Public Member Functions

 __construct ($responseclass, $fraction)
 Constructor, just an easy way to set the fields.
 

Static Public Member Functions

static no_response ()
 

Public Attributes

string $fraction
 the (partial) credit awarded for this responses.
 
string $responseclass
 the classification of this response the student gave to this part of the question.
 

Detailed Description

This class is used in the return value from question_type::get_possible_responses().

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

Constructor & Destructor Documentation

◆ __construct()

question_possible_response::__construct ( $responseclass,
$fraction )

Constructor, just an easy way to set the fields.

Parameters
string$responseclassidsee the field descriptions above.
string$responsesee the field descriptions above.
number$fractionsee the field descriptions above.

Member Data Documentation

◆ $responseclass

string question_possible_response::$responseclass

the classification of this response the student gave to this part of the question.

Must match one of the responseclasses returned by question_type::get_possible_responses().


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