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

Public Member Functions

 correct_response (question_attempt $qa)

Protected Member Functions

 get_input_type ()
 get_input_name (question_attempt $qa, $value)
 get_input_value ($value)
 get_input_id (question_attempt $qa, $value)
 is_right (question_answer $ans)
 prompt ()

Detailed Description

Subclass for generating the bits of output specific to multiple choice single questions.

Definition at line 198 of file renderer.php.


Member Function Documentation

Gereate an automatic description of the correct response to this question. Not all question types can do this. If it is not possible, this method should just return an empty string.

Parameters:
question_attempt$qathe question attempt to display.
Returns:
string HTML fragment.

Reimplemented from qtype_renderer.

Definition at line 223 of file renderer.php.

Here is the call graph for this function:

get_input_id ( question_attempt qa,
value 
) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 211 of file renderer.php.

Here is the call graph for this function:

get_input_name ( question_attempt qa,
value 
) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 203 of file renderer.php.

Here is the call graph for this function:

get_input_type ( ) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 199 of file renderer.php.

get_input_value ( value) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 207 of file renderer.php.

is_right ( question_answer ans) [protected]

Whether a choice should be considered right, wrong or partially right.

Parameters:
question_answer$ansrepresenting one of the choices.
Returns:
fload 1.0, 0.0 or something in between, respectively.

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 215 of file renderer.php.

prompt ( ) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 219 of file renderer.php.


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