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

Public Member Functions

 formulation_and_controls (question_attempt $qa, question_display_options $options)
 files_read_only (question_attempt $qa, question_display_options $options)
 files_input (question_attempt $qa, $numallowed, question_display_options $options)
 manual_comment (question_attempt $qa, question_display_options $options)

Detailed Description

Generates the output for essay questions.

Definition at line 36 of file renderer.php.


Member Function Documentation

files_input ( question_attempt qa,
numallowed,
question_display_options options 
)

Displays the input control for when the student should upload a single file.

Parameters:
question_attempt$qathe question attempt to display.
int$numallowedthe maximum number of attachments allowed. -1 = unlimited.
question_display_options$optionscontrols what should and should not be displayed. Used to get the context.

Definition at line 102 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Displays any attached files when the question is in read-only mode.

Parameters:
question_attempt$qathe question attempt to display.
question_display_options$optionscontrols what should and should not be displayed. Used to get the context.

Definition at line 82 of file renderer.php.

Here is the call graph for this function:

Here is the caller graph for this function:

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:
question_attempt$qathe question attempt to display.
question_display_options$optionscontrols what should and should not be displayed.
Returns:
string HTML fragment.

Reimplemented from qtype_renderer.

Definition at line 37 of file renderer.php.

Here is the call graph for this function:

Display any extra question-type specific content that should be visible when grading, if appropriate.

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

Reimplemented from qtype_renderer.

Definition at line 122 of file renderer.php.

Here is the call graph for this function:


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