Moodle  2.2.1
http://www.collinsharper.com
qbehaviour_renderer Class Reference
Inheritance diagram for qbehaviour_renderer:
Collaboration diagram for qbehaviour_renderer:

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)

Detailed Description

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.


Member Function Documentation

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.

Parameters:
question_attempt$qaa question attempt.
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

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.

Here is the caller graph for this function:

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.

Parameters:
question_attempt$qaa question attempt.
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

Reimplemented in qbehaviour_deferredcbm_renderer, qbehaviour_adaptive_renderer, and qbehaviour_interactive_renderer.

Definition at line 67 of file rendererbase.php.

Here is the caller graph for this function:

Return any HTML that needs to be included in the page's <head> when questions using this model are used.

Parameters:
$qathe question attempt that will be displayed on the page.
Returns:
string HTML fragment.

Definition at line 225 of file rendererbase.php.

Display the manual comment, and a link to edit it, if appropriate.

Parameters:
question_attempt$qaa question attempt.
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

Definition at line 182 of file rendererbase.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 71 of file rendererbase.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 160 of file rendererbase.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Parameters:
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

Definition at line 200 of file rendererbase.php.

Here is the call graph for this function:

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations