Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Renderable class for the presets table in the database activity. More...
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. | |
Renderable class for the presets table in the database activity.
mod_data\output\presets::__construct | ( | manager | $manager, |
array | $presets, | ||
moodle_url | $formactionurl, | ||
bool | $manage = false ) |
The class constructor.
manager | $manager | The database manager |
array | $presets | The array containing the existing presets |
moodle_url | $formactionurl | The action url for the form |
bool | $manage | Whether the manage preset options should be displayed |
mod_data\output\presets::export_for_template | ( | renderer_base | $output | ) |
Export the data for the mustache template.
renderer_base | $output | The renderer to be used to render the action bar elements. |
array |
Implements templatable.