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

Public Member Functions

 __construct ($id, $hint, $hintformat, $shownumcorrect, $clearwrong)
 adjust_display_options (question_display_options $options)

Static Public Member Functions

static load_from_record ($row)

Data Fields

 $shownumcorrect
 $clearwrong

Detailed Description

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.

Definition at line 822 of file questionbase.php.


Constructor & Destructor Documentation

__construct ( id,
hint,
hintformat,
shownumcorrect,
clearwrong 
)

Constructor.

Parameters:
intthe hint id from the database.
string$hintThe hint text
intthe corresponding text FORMAT_... type.
bool$shownumcorrectwhether the number of right parts should be shown
bool$clearwrongwhether the wrong parts should be reset.

Definition at line 837 of file questionbase.php.


Member Function Documentation

Adjust this display options according to the hint settings.

Parameters:
question_display_options$options

Reimplemented from question_hint.

Definition at line 853 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, ->shownumcorrect and ->clearwrong set.
Returns:
question_hint_with_parts

Reimplemented from question_hint.

Definition at line 848 of file questionbase.php.

Here is the caller graph for this function:


Field Documentation

$clearwrong

Definition at line 827 of file questionbase.php.

$shownumcorrect

Definition at line 824 of file questionbase.php.


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