Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
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: