Differences Between: [Versions 310 and 400] [Versions 39 and 400] [Versions 400 and 401] [Versions 400 and 402] [Versions 400 and 403]
Defines the renderer base class for question behaviours.
Copyright: | 2009 The Open University |
License: | http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later |
File Size: | 296 lines (13 kb) |
Included or required: | 1 time |
Referenced: | 0 times |
Includes or requires: | 0 files |
qbehaviour_renderer:: (10 methods):
controls()
feedback()
manual_comment_fields()
manual_comment_view()
manual_comment()
submit_button()
head_code()
mark_summary()
marked_out_of_max()
mark_out_of_max()
Class: qbehaviour_renderer - X-Ref
Renderer base class for question behaviours.controls(question_attempt $qa, question_display_options $options) X-Ref |
Generate some HTML (which may be blank) that appears in the question formulation area, afer the question type generated output. For example. immediatefeedback and interactive mode use this to show the Submit button, and CBM use this to display the certainty choices. return: string HTML fragment. param: question_attempt $qa a question attempt. param: question_display_options $options controls what should and should not be displayed. |
feedback(question_attempt $qa, question_display_options $options) X-Ref |
Generate some HTML (which may be blank) that appears in the outcome area, after the question-type generated output. For example, the CBM models use this to display an explanation of the score adjustment that was made based on the certainty selected. return: string HTML fragment. param: question_attempt $qa a question attempt. param: question_display_options $options controls what should and should not be displayed. |
manual_comment_fields(question_attempt $qa, question_display_options $options) X-Ref |
No description |
manual_comment_view(question_attempt $qa, question_display_options $options) X-Ref |
No description |
manual_comment(question_attempt $qa, question_display_options $options) X-Ref |
Display the manual comment, and a link to edit it, if appropriate. return: string HTML fragment. param: question_attempt $qa a question attempt. param: question_display_options $options controls what should and should not be displayed. |
submit_button(question_attempt $qa, question_display_options $options) X-Ref |
Several behaviours need a submit button, so put the common code here. The button is disabled if the question is displayed read-only. return: string HTML fragment. param: question_display_options $options controls what should and should not be displayed. |
head_code(question_attempt $qa) X-Ref |
Return any HTML that needs to be included in the page's <head> when questions using this model are used. return: string HTML fragment. param: $qa the question attempt that will be displayed on the page. |
mark_summary(question_attempt $qa, core_question_renderer $qoutput,question_display_options $options) X-Ref |
Generate the display of the marks for this question. return: HTML fragment. param: question_attempt $qa the question attempt to display. param: core_question_renderer $qoutput the renderer for standard parts of questions. param: question_display_options $options controls what should and should not be displayed. |
marked_out_of_max(question_attempt $qa, core_question_renderer $qoutput,question_display_options $options) X-Ref |
Generate the display of the available marks for this question. return: HTML fragment. param: question_attempt $qa the question attempt to display. param: core_question_renderer $qoutput the renderer for standard parts of questions. param: question_display_options $options controls what should and should not be displayed. |
mark_out_of_max(question_attempt $qa, core_question_renderer $qoutput,question_display_options $options) X-Ref |
Generate the display of the marks for this question out of the available marks. return: HTML fragment. param: question_attempt $qa the question attempt to display. param: core_question_renderer $qoutput the renderer for standard parts of questions. param: question_display_options $options controls what should and should not be displayed. |