Question hint for ddmarker.
More...
|
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.
|
|
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.
|
|
| $statewhichincorrect |
|
Question hint for ddmarker.
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.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
question_hint_ddmarker::__construct |
( |
| $id, |
|
|
| $hint, |
|
|
| $hintformat, |
|
|
| $shownumcorrect, |
|
|
| $clearwrong, |
|
|
| $statewhichincorrect ) |
Constructor.
- Parameters
-
| 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. |
◆ adjust_display_options()
Adjust this display options according to the hint settings.
- Parameters
-
Reimplemented from question_hint.
◆ load_from_record()
static question_hint_ddmarker::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 property options as well as hint, shownumcorrect and clearwrong set. |
- Return values
-
Reimplemented from question_hint_with_parts.
The documentation for this class was generated from the following file: