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

Public Member Functions | |
| __construct ($id, $hint, $hintformat) | |
| adjust_display_options (question_display_options $options) | |
Static Public Member Functions | |
| static | load_from_record ($row) |
Data Fields | |
| $id | |
| $hint | |
| $hintformat | |
Class to represent a hint associated with a question. Used by iteractive mode, etc. A question has an array of these.
Definition at line 775 of file questionbase.php.
| __construct | ( | $ | id, |
| $ | hint, | ||
| $ | hintformat | ||
| ) |
Constructor.
| int | the hint id from the database. | |
| string | $hint | The hint text |
| int | the corresponding text FORMAT_... type. |
Definition at line 789 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 in question_hint_with_parts.
Definition at line 808 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 set. |
Reimplemented in question_hint_with_parts.
Definition at line 800 of file questionbase.php.

| $hint |
Definition at line 779 of file questionbase.php.
| $hintformat |
Definition at line 781 of file questionbase.php.
| $id |
Definition at line 777 of file questionbase.php.