|
| __construct (protected int readonly int $cmid, protected string readonly string $whichpage,) |
| overrides_action constructor.
|
|
| export_for_template (renderer_base $output) |
| Function to export the renderer data in a format that is suitable for a mustache template.
|
|
|
string const | GRADING = 'grading' |
| option for $whichpage argument to the constructor.
|
|
string const | SUMMARY = 'summary' |
| option for $whichpage argument to the constructor.
|
|
◆ __construct()
mod_quiz\output\edit_nav_actions::__construct |
( |
protected int readonly int | $cmid, |
|
|
protected string readonly string | $whichpage ) |
overrides_action constructor.
- Parameters
-
int | $cmid | The course module id. |
string | $whichpage | self\SUMMARY (edit.php) or self\GRADING (editgrading.php). |
- Parameters
-
$cmid | The course module ID. |
$whichpage | which page this is. Either self\SUMMARY (edit.php) or self\GRADING (editgrading.php). |
◆ export_for_template()
mod_quiz\output\edit_nav_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:
- mod/quiz/classes/output/edit_nav_actions.php