|
Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Render overrides action in the quiz secondary navigation. More...
Public Member Functions | |
| __construct (int $cmid, string $mode, bool $canedit, bool $addenabled) | |
| overrides_action constructor. | |
| create_add_button (\renderer_base $output) | |
| Create the add override button. | |
| export_for_template (renderer_base $output) | |
| Function to export the renderer data in a format that is suitable for a mustache template. | |
Render overrides action in the quiz secondary navigation.
The user/group overrides are now handled in the secondary navigation. This class provides the data for the templates to handle the data for overrides tab.
| mod_quiz\output\overrides_actions::__construct | ( | int | $cmid, |
| string | $mode, | ||
| bool | $canedit, | ||
| bool | $addenabled ) |
overrides_action constructor.
| int | $cmid | The course module id. |
| string | $mode | The mode passed for the overrides url. |
| bool | $canedit | Does the user have capabilities to list overrides. |
| bool | $addenabled | Whether the add button should be enabled or disabled. |
| mod_quiz\output\overrides_actions::create_add_button | ( | \renderer_base | $output | ) |
Create the add override button.
| renderer_base | $output | an instance of the quiz renderer. |
| single_button | the button, ready to reander. |
| mod_quiz\output\overrides_actions::export_for_template | ( | renderer_base | $output | ) |
Function to export the renderer data in a format that is suitable for a mustache template.
This means:
| renderer_base | $output | Used to do a final render of any components that need to be rendered for export. |
| stdClass|array |
Implements templatable.