|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| formulation_and_controls (question_attempt $qa, question_display_options $options) | |
| specific_feedback (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 () | |
| number_html ($qnum) | |
| number_in_style ($num, $style) | |
Base class for generating the bits of output common to multiple choice single and multiple questions.
Definition at line 37 of file renderer.php.
| formulation_and_controls | ( | question_attempt $ | qa, |
| question_display_options $ | options | ||
| ) |
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.
| question_attempt | $qa | the question attempt to display. |
| question_display_options | $options | controls what should and should not be displayed. |
Reimplemented from qtype_renderer.
Definition at line 55 of file renderer.php.

| get_input_id | ( | question_attempt $ | qa, |
| $ | value | ||
| ) | [abstract, protected] |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| get_input_name | ( | question_attempt $ | qa, |
| $ | value | ||
| ) | [abstract, protected] |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| get_input_type | ( | ) | [abstract, protected] |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| get_input_value | ( | $ | value | ) | [abstract, protected] |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| is_right | ( | question_answer $ | ans | ) | [abstract, protected] |
Whether a choice should be considered right, wrong or partially right.
| question_answer | $ans | representing one of the choices. |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| number_html | ( | $ | qnum | ) | [protected] |
| number_in_style | ( | $ | num, |
| $ | style | ||
| ) | [protected] |
| int | $num | The number, starting at 0. |
| string | $style | The style to render the number in. One of the options returned by qtype_multichoice:;get_numbering_styles(). |
Definition at line 160 of file renderer.php.


| prompt | ( | ) | [abstract, protected] |
Reimplemented in qtype_multichoice_multi_renderer, and qtype_multichoice_single_renderer.

| specific_feedback | ( | question_attempt $ | qa | ) |
Gereate the specific feedback. This is feedback that varies accordin to the reponse the student gave.
| question_attempt | $qa | the question attempt to display. |
Reimplemented from qtype_renderer.
Definition at line 185 of file renderer.php.
