Moodle  2.2.1
http://www.collinsharper.com
question_hint Class Reference
Inheritance diagram for question_hint:

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

Detailed Description

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.


Constructor & Destructor Documentation

__construct ( id,
hint,
hintformat 
)

Constructor.

Parameters:
intthe hint id from the database.
string$hintThe hint text
intthe corresponding text FORMAT_... type.

Definition at line 789 of file questionbase.php.


Member Function Documentation

Adjust this display options according to the hint settings.

Parameters:
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.

Parameters:
object$rowwith $row->hint set.
Returns:
question_hint

Reimplemented in question_hint_with_parts.

Definition at line 800 of file questionbase.php.

Here is the caller graph for this function:


Field Documentation

$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.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations