Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
|
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. | |
This class is used in the return value from question_type::get_possible_responses().
question_possible_response::__construct | ( | $responseclass, | |
$fraction ) |
Constructor, just an easy way to set the fields.
string | $responseclassid | see the field descriptions above. |
string | $response | see the field descriptions above. |
number | $fraction | see the field descriptions above. |
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().