Moodle PHP Documentation 5.1
Moodle 5.1dev (Build: 20250706) (a6b17d8f6bd)
mod_data\output\preset_preview Class Reference
Inheritance diagram for mod_data\output\preset_preview:

Public Member Functions

 __construct (manager $manager, preset $preset, string $templatename)
 The class constructor.
 
 export_for_template (\renderer_base $output)
 Export the data for the mustache template.
 
 prepare_page (moodle_page $page)
 Add the preset CSS and JS to the page.
 

Constructor & Destructor Documentation

◆ __construct()

mod_data\output\preset_preview::__construct ( manager $manager,
preset $preset,
string $templatename )

The class constructor.

Parameters
manager$managerthe activity instance manager
preset$presetthe preset
string$templatenamethe templatename

Member Function Documentation

◆ export_for_template()

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

Export the data for the mustache template.

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

◆ prepare_page()

mod_data\output\preset_preview::prepare_page ( moodle_page $page)

Add the preset CSS and JS to the page.

Parameters
moodle_page$pagethe current page instance

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