Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250530) (c39b7370636)
|
Renderer for outputting parts of a question belonging to the interactive with countback behaviour. More...
Public Member Functions | |
controls (question_attempt $qa, question_display_options $options) | |
Generate some HTML (which may be blank) that appears in the question formulation area, afer the question type generated output. | |
feedback (question_attempt $qa, question_display_options $options) | |
Generate some HTML (which may be blank) that appears in the outcome area, after the question-type generated output. | |
head_code (question_attempt $qa) | |
Return any HTML that needs to be included in the page's <head> when questions using this model are used. | |
manual_comment (question_attempt $qa, question_display_options $options) | |
Display the manual comment, and a link to edit it, if appropriate. | |
manual_comment_fields (question_attempt $qa, question_display_options $options) | |
manual_comment_view (question_attempt $qa, question_display_options $options) | |
mark_out_of_max (question_attempt $qa, core_question_renderer $qoutput, question_display_options $options) | |
Generate the display of the marks for this question out of the available marks. | |
mark_summary (question_attempt $qa, core_question_renderer $qoutput, question_display_options $options) | |
Generate the display of the marks for this question. | |
marked_out_of_max (question_attempt $qa, core_question_renderer $qoutput, question_display_options $options) | |
Generate the display of the available marks for this question. | |
Protected Member Functions | |
submit_button (question_attempt $qa, question_display_options $options) | |
Several behaviours need a submit button, so put the common code here. | |
Renderer for outputting parts of a question belonging to the interactive with countback behaviour.
There are not differences from the interactive output. We just need a class definition.
|
inherited |
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.
question_attempt | $qa | a question attempt. |
question_display_options | $options | controls what should and should not be displayed. |
string | HTML fragment. |
Reimplemented from qbehaviour_renderer.
|
inherited |
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.
question_attempt | $qa | a question attempt. |
question_display_options | $options | controls what should and should not be displayed. |
string | HTML fragment. |
Reimplemented from qbehaviour_renderer.
|
inherited |
Return any HTML that needs to be included in the page's <head> when questions using this model are used.
$qa | the question attempt that will be displayed on the page. |
string | HTML fragment. |
|
inherited |
Display the manual comment, and a link to edit it, if appropriate.
question_attempt | $qa | a question attempt. |
question_display_options | $options | controls what should and should not be displayed. |
string | HTML fragment. |
|
inherited |
Generate the display of the marks for this question out of the available marks.
question_attempt | $qa | the question attempt to display. |
core_question_renderer | $qoutput | the renderer for standard parts of questions. |
question_display_options | $options | controls what should and should not be displayed. |
HTML | fragment. |
Reimplemented in qbehaviour_deferredcbm_renderer.
|
inherited |
Generate the display of the marks for this question.
question_attempt | $qa | the question attempt to display. |
core_question_renderer | $qoutput | the renderer for standard parts of questions. |
question_display_options | $options | controls what should and should not be displayed. |
HTML | fragment. |
|
inherited |
Generate the display of the available marks for this question.
question_attempt | $qa | the question attempt to display. |
core_question_renderer | $qoutput | the renderer for standard parts of questions. |
question_display_options | $options | controls what should and should not be displayed. |
HTML | fragment. |
Reimplemented in qbehaviour_deferredcbm_renderer.
|
protectedinherited |
Several behaviours need a submit button, so put the common code here.
The button is disabled if the question is displayed read-only.
question_display_options | $options | controls what should and should not be displayed. |
string | HTML fragment. |