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


Public Member Functions | |
| controls (question_attempt $qa, question_display_options $options) | |
| feedback (question_attempt $qa, question_display_options $options) | |
| manual_comment_fields (question_attempt $qa, question_display_options $options) | |
| manual_comment_view (question_attempt $qa, question_display_options $options) | |
| manual_comment (question_attempt $qa, question_display_options $options) | |
| head_code (question_attempt $qa) | |
Protected Member Functions | |
| submit_button (question_attempt $qa, question_display_options $options) | |
Renderer base class for question behaviours.
The methods in this class are mostly called from core_question_renderer which coordinates the overall output of questions.
Definition at line 39 of file rendererbase.php.
| 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.
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. |
Reimplemented in qbehaviour_deferredcbm_renderer, qbehaviour_adaptive_renderer, qbehaviour_immediatecbm_renderer, qbehaviour_immediatefeedback_renderer, qbehaviour_informationitem_renderer, qbehaviour_interactive_renderer, and qbehaviour_missing_renderer.
Definition at line 52 of file rendererbase.php.

| 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.
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. |
Reimplemented in qbehaviour_deferredcbm_renderer, qbehaviour_adaptive_renderer, and qbehaviour_interactive_renderer.
Definition at line 67 of file rendererbase.php.

| 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.
| $qa | the question attempt that will be displayed on the page. |
Definition at line 225 of file rendererbase.php.
| manual_comment | ( | question_attempt $ | qa, |
| question_display_options $ | options | ||
| ) |
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. |
Definition at line 182 of file rendererbase.php.


| manual_comment_fields | ( | question_attempt $ | qa, |
| question_display_options $ | options | ||
| ) |
Definition at line 71 of file rendererbase.php.


| manual_comment_view | ( | question_attempt $ | qa, |
| question_display_options $ | options | ||
| ) |
Definition at line 160 of file rendererbase.php.


| submit_button | ( | question_attempt $ | qa, |
| question_display_options $ | options | ||
| ) | [protected] |
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. |
Definition at line 200 of file rendererbase.php.

