|
| __construct (int $timenow) |
| Constructor.
|
|
| add_attempt (quiz_attempt $attemptobj) |
| Add an event to the list.
|
|
| export_for_template (renderer_base $output) |
| Function to export the renderer data in a format that is suitable for a mustache template.
|
|
| export_for_template (renderer_base $output) |
|
| get_template_name (renderer_base $renderer) |
| Get the name of the template to use for this templatable.
|
|
| get_template_name (\renderer_base $renderer) |
|
|
quiz_attempt[] array | $attempts = [] |
| The list of attempts to summarise.
|
|
int int | $timenow |
| time to consider as now.
|
|
◆ __construct()
mod_quiz\output\list_of_attempts::__construct |
( |
int | $timenow | ) |
|
Constructor.
- Parameters
-
int | $timenow | time that is now. |
◆ add_attempt()
mod_quiz\output\list_of_attempts::add_attempt |
( |
quiz_attempt | $attemptobj | ) |
|
Add an event to the list.
- Parameters
-
◆ export_for_template()
core\output\templatable::export_for_template |
( |
renderer_base | $output | ) |
|
|
inherited |
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
-
Implemented in core\output\action_menu, core\output\actions\component_action, core\output\activity_header, core\output\checkbox_toggleall, core\output\choicelist, core\output\chooser, core\output\chooser_item, core\output\chooser_section, core\output\comboboxsearch, core\output\context_header, core\output\custom_menu_item, core\output\dynamic_tabs, core\output\help_icon, core\output\initials_bar, core\output\paging_bar, core\output\pix_icon, core\output\pix_icon_font, core\output\progress_bar, core\output\select_menu, core\output\single_select, core\output\tabobject, core\output\tabtree, core\output\url_select, core_course\output\actionbar\group_selector_button, core_course\output\actionbar\group_selector_dropdown_form, and core_course\output\actionbar\user_selector_button.
◆ get_template_name()
core\output\named_templatable::get_template_name |
( |
renderer_base | $renderer | ) |
|
|
inherited |
The documentation for this class was generated from the following file:
- mod/quiz/classes/output/list_of_attempts.php