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

Public Member Functions

 __construct (protected structure readonly structure $structure,)
 Constructor.
 
 export_for_template (renderer_base $output)
 Function to export the renderer data in a format that is suitable for a mustache template.
 

Detailed Description

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Constructor & Destructor Documentation

◆ __construct()

mod_quiz\output\edit_grading_page::__construct ( protected structure readonly structure $structure)

Constructor.

Parameters
structure$structure
Parameters
$structurestructure of the quiz for which to display the grade edit page.

Member Function Documentation

◆ export_for_template()

mod_quiz\output\edit_grading_page::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: