|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| __construct ($id, $hint, $hintformat, $shownumcorrect, $clearwrong) | |
| adjust_display_options (question_display_options $options) | |
Static Public Member Functions | |
| static | load_from_record ($row) |
Data Fields | |
| $shownumcorrect | |
| $clearwrong | |
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.
Definition at line 822 of file questionbase.php.
| __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. |
Definition at line 837 of file questionbase.php.
| adjust_display_options | ( | question_display_options $ | options | ) |
Adjust this display options according to the hint settings.
| question_display_options | $options |
Reimplemented from question_hint.
Definition at line 853 of file questionbase.php.
| static load_from_record | ( | $ | row | ) | [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. |
Reimplemented from question_hint.
Definition at line 848 of file questionbase.php.

| $clearwrong |
Definition at line 827 of file questionbase.php.
| $shownumcorrect |
Definition at line 824 of file questionbase.php.