Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
mod_quiz\output\edit_nav_actions Class Reference
Inheritance diagram for mod_quiz\output\edit_nav_actions:
renderable templatable

Public Member Functions

 __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.
 

Public Attributes

string const GRADING = 'grading'
 option for $whichpage argument to the constructor.
 
string const SUMMARY = 'summary'
 option for $whichpage argument to the constructor.
 

Constructor & Destructor Documentation

◆ __construct()

mod_quiz\output\edit_nav_actions::__construct ( protected int readonly int $cmid,
protected string readonly string $whichpage )

overrides_action constructor.

Parameters
int$cmidThe course module id.
string$whichpageself\SUMMARY (edit.php) or self\GRADING (editgrading.php).
Parameters
$cmidThe course module ID.
$whichpagewhich page this is. Either self\SUMMARY (edit.php) or self\GRADING (editgrading.php).

Member Function Documentation

◆ 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:

  1. No complex types - only stdClass, array, int, string, float, bool
  2. Any additional info that is required for the template is pre-calculated (e.g. capability checks).
Parameters
renderer_base$outputUsed to do a final render of any components that need to be rendered for export.
Return values
stdClass|array

Implements templatable.


The documentation for this class was generated from the following file: