Moodle  2.2.1
http://www.collinsharper.com
qtype_multichoice_multi_renderer Class Reference
Inheritance diagram for qtype_multichoice_multi_renderer:
Collaboration diagram for qtype_multichoice_multi_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 ()
 num_parts_correct (question_attempt $qa)

Detailed Description

Subclass for generating the bits of output specific to multiple choice multi=select questions.

Definition at line 246 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 275 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 259 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 251 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

get_input_type ( ) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 247 of file renderer.php.

get_input_value ( value) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 255 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 263 of file renderer.php.

num_parts_correct ( question_attempt qa) [protected]

Gereate a brief statement of how many sub-parts of this question the student got right.

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

Reimplemented from qtype_renderer.

Definition at line 293 of file renderer.php.

Here is the call graph for this function:

prompt ( ) [protected]

Reimplemented from qtype_multichoice_renderer_base.

Definition at line 271 of file renderer.php.


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