Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
|
An extension of question_hint for questions like match and multiple choice with multile answers, where there are options for whether to show the number of parts right at each stage, and to reset the wrong parts. More...
Public Member Functions | |
__construct ($id, $hint, $hintformat, $shownumcorrect, $clearwrong) | |
Constructor. More... | |
adjust_display_options (question_display_options $options) | |
Adjust this display options according to the hint settings. More... | |
Static Public Member Functions | |
static | load_from_record ($row) |
Create a basic hint from a row loaded from the question_hints table in the database. More... | |
An extension of question_hint for questions like match and multiple choice with multile answers, where there are options for whether to show the number of parts right at each stage, and to reset the wrong parts.
question_hint_with_parts::__construct | ( | $id, | |
$hint, | |||
$hintformat, | |||
$shownumcorrect, | |||
$clearwrong | |||
) |
Constructor.
int | the hint id from the database. | |
string | $hint | The hint text |
int | the corresponding text FORMAT_... type. | |
bool | $shownumcorrect | whether the number of right parts should be shown |
bool | $clearwrong | whether the wrong parts should be reset. |
question_hint_with_parts::adjust_display_options | ( | question_display_options | $options | ) |
Adjust this display options according to the hint settings.
question_display_options | $options |
Reimplemented from question_hint.
Reimplemented in question_hint_ddmarker.
|
static |
Create a basic hint from a row loaded from the question_hints table in the database.
object | $row | with $row->hint, ->shownumcorrect and ->clearwrong set. |
question_hint_with_parts |
Reimplemented from question_hint.
Reimplemented in question_hint_ddmarker.