|
int const | FULL = 2 |
| Question text is displayed fully rendered.
|
|
int const | OFF = 0 |
| Question text is off.
|
|
int const | PLAIN = 1 |
| Question text is displayed in plain text mode.
|
|
|
int mixed int | $preference |
| The current display preference value.
|
|
moodle_url moodle_url | $returnurl |
| The return URL for redirecting back to the current question bank page.
|
|
◆ __construct()
qbank_viewquestiontext\output\question_text_format::__construct |
( |
view | $qbank | ) |
|
Store the returnurl and the current preference value.
- Parameters
-
- Exceptions
-
◆ export_for_template()
qbank_viewquestiontext\output\question_text_format::export_for_template |
( |
renderer_base | $output | ) |
|
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
- No complex types - only stdClass, array, int, string, float, bool
- Any additional info that is required for the template is pre-calculated (e.g. capability checks).
- Parameters
-
renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
- Return values
-
Implements templatable.
The documentation for this class was generated from the following file:
- question/bank/viewquestiontext/classes/output/question_text_format.php