Class to represent a hint associated with a question.
More...
|
static | load_from_record ($row) |
| Create a basic hint from a row loaded from the question_hints table in the database.
|
|
|
string | $hint |
| The feedback hint to be shown.
|
|
integer | $hintformat |
| The corresponding text FORMAT_... type.
|
|
integer | $id |
| The hint id.
|
|
Class to represent a hint associated with a question.
Used by iteractive mode, etc. A question has an array of these.
- Copyright
- 2010 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ __construct()
question_hint::__construct |
( |
| $id, |
|
|
| $hint, |
|
|
| $hintformat ) |
Constructor.
- Parameters
-
| int | the hint id from the database. |
string | $hint | The hint text |
| int | the corresponding text FORMAT_... type. |
◆ adjust_display_options()
◆ load_from_record()
static question_hint::load_from_record |
( |
| $row | ) |
|
|
static |
The documentation for this class was generated from the following file:
- question/type/questionbase.php