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

Public Member Functions

 formulation_and_controls (question_attempt $qa, question_display_options $options)
 subquestion (question_attempt $qa, question_display_options $options, $index, question_graded_automatically $subq)
 correct_response (question_attempt $qa)

Detailed Description

Base class for generating the bits of output common to multianswer (Cloze) questions. This render the main question text and transfer to the subquestions the task of display their input elements and status feedback, grade, correct answer(s)

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

Generate the display of the formulation part of the question. This is the area that contains the quetsion text, and the controls for students to input their answers. Some question types also embed bits of feedback, for example ticks and crosses, in this area.

Parameters:
question_attempt$qathe question attempt to display.
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

Reimplemented from qtype_renderer.

Definition at line 43 of file renderer.php.

Here is the call graph for this function:

Definition at line 68 of file renderer.php.

Here is the caller graph for this function:


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