Moodle PHP Documentation 4.3
Moodle 4.3.5 (Build: 20240610) (7dcfaa79f78)
mod_data\output\presets Class Reference
Inheritance diagram for mod_data\output\presets:
templatable renderable

Public Member Functions

 __construct (manager $manager, array $presets, moodle_url $formactionurl, bool $manage=false)
 The class constructor.
 
 export_for_template (renderer_base $output)
 Export the data for the mustache template.
 

Constructor & Destructor Documentation

◆ __construct()

mod_data\output\presets::__construct ( manager $manager,
array $presets,
moodle_url $formactionurl,
bool $manage = false )

The class constructor.

Parameters
manager$managerThe database manager
array$presetsThe array containing the existing presets
moodle_url$formactionurlThe action url for the form
bool$manageWhether the manage preset options should be displayed

Member Function Documentation

◆ export_for_template()

mod_data\output\presets::export_for_template ( renderer_base $output)

Export the data for the mustache template.

Parameters
renderer_base$outputThe renderer to be used to render the action bar elements.
Return values
array

Implements templatable.


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