|
static | load_from_record ($row) |
| Create a basic hint from a row loaded from the question_hints table in the database.
|
|
|
boolean | $clearwrong |
| option to clear the parts of the question that were wrong on retry.
|
|
bool bool | $highlightresponse |
| Highlight response in the hint options.
|
|
string | $hint |
| The feedback hint to be shown.
|
|
integer | $hintformat |
| The corresponding text FORMAT_... type.
|
|
integer | $id |
| The hint id.
|
|
boolean | $shownumcorrect |
| option to show the number of sub-parts of the question that were right.
|
|
◆ __construct()
qtype_ordering\question_hint_ordering::__construct |
( |
int | $id, |
|
|
string | $hint, |
|
|
int | $hintformat, |
|
|
bool | $shownumcorrect, |
|
|
bool | $clearwrong, |
|
|
bool | $highlightresponse ) |
Constructor.
- Parameters
-
int | $id | The hint id from the database. |
string | $hint | The hint text. |
int | $hintformat | 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. |
bool | $highlightresponse | Whether to highlight response. |
◆ adjust_display_options()
Adjust this display options according to the hint settings.
- Parameters
-
Reimplemented from question_hint.
◆ load_from_record()
static qtype_ordering\question_hint_ordering::load_from_record |
( |
| $row | ) |
|
|
static |
Create a basic hint from a row loaded from the question_hints table in the database.
- Parameters
-
object | $row | with $row->hint, ->shownumcorrect and ->clearwrong set. |
- Return values
-
Reimplemented from question_hint_with_parts.
The documentation for this class was generated from the following file:
- question/type/ordering/classes/question_hint_ordering.php