This question renderer class is used when the actual question type of this question cannot be found.
More...
This question renderer class is used when the actual question type of this question cannot be found.
- Copyright
- 2009 The Open University
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
◆ clear_wrong()
Output hidden form fields to clear any wrong parts of the student's response.
This method will only be called if the question is in read-only mode.
- Parameters
-
- Return values
-
Reimplemented in qtype_ddtoimage_renderer_base.
◆ correct_response()
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
-
- Return values
-
Reimplemented in qtype_calculated_renderer, qtype_ddtoimage_renderer_base, qtype_elements_embedded_in_question_text_renderer, qtype_match_renderer, qtype_multianswer_renderer, qtype_multichoice_multi_renderer, qtype_multichoice_single_renderer, qtype_numerical_renderer, qtype_ordering_renderer, qtype_shortanswer_renderer, and qtype_truefalse_renderer.
◆ feedback()
Generate the display of the outcome part of the question.
This is the area that contains the various forms of feedback. This function generates the content of this area belonging to the question type.
Subclasses will normally want to override the more specific methods {specific_feedback()}, {general_feedback()} and {correct_response()} that this method calls.
- Parameters
-
- Return values
-
Reimplemented in qtype_ordering_renderer.
◆ feedback_image()
qtype_renderer::feedback_image |
( |
| $fraction, |
|
|
| $selected = true ) |
|
protectedinherited |
Return an appropriate icon (green tick, red cross, etc.) for a grade.
- Parameters
-
float | $fraction | grade on a scale 0..1. |
bool | $selected | whether to show a big or small icon. (Deprecated) |
- Return values
-
Reimplemented in qtype_ordering_renderer.
◆ formulation_and_controls()
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
-
- Return values
-
Reimplemented in qtype_ddmarker_renderer, qtype_ddtoimage_renderer_base, qtype_ddwtos_renderer, qtype_description_renderer, qtype_elements_embedded_in_question_text_renderer, qtype_essay_renderer, qtype_match_renderer, qtype_multianswer_renderer, qtype_multichoice_renderer_base, qtype_numerical_renderer, qtype_ordering_renderer, qtype_shortanswer_renderer, and qtype_truefalse_renderer.
◆ formulation_heading()
qtype_renderer::formulation_heading |
( |
| ) |
|
|
inherited |
In the question output there are some class="accesshide" headers to help screen-readers.
This method returns the text to use for the heading above the formulation_and_controls section.
- Return values
-
string | to use as the heading. |
Reimplemented in qtype_description_renderer.
◆ general_feedback()
Gereate the general feedback.
This is feedback is shown ot all students.
- Parameters
-
- Return values
-
◆ head_code()
Return any HTML that needs to be included in the page's <head> when this question is used.
- Parameters
-
$qa | the question attempt that will be displayed on the page. |
- Return values
-
◆ hint()
Gereate the specific feedback.
This is feedback that varies according to the response the student gave.
- Parameters
-
- Return values
-
Reimplemented in qtype_ddmarker_renderer.
◆ manual_comment()
Display any extra question-type specific content that should be visible when grading, if appropriate.
- Parameters
-
- Return values
-
Reimplemented in qtype_essay_renderer.
◆ num_parts_correct()
◆ specific_feedback()
The documentation for this class was generated from the following file:
- question/type/missingtype/renderer.php