◆ __construct()
mod_quiz\output\overrides_actions::__construct |
( |
int |
$cmid, |
|
|
string |
$mode, |
|
|
bool |
$canedit, |
|
|
bool |
$addenabled |
|
) |
| |
overrides_action constructor.
- Parameters
-
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. |
◆ create_add_button()
mod_quiz\output\overrides_actions::create_add_button |
( |
\renderer_base |
$output | ) |
|
Create the add override button.
- Parameters
-
- Return values
-
◆ export_for_template()
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:
- 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: