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

Public Member Functions

 __construct (array $fields, string $templatename, bool $isform)
 The class constructor.
 
 export_for_template (\renderer_base $output)
 Export the data for the mustache template.
 
 get_templatename ()
 Obtains the mustache template name for this database template.
 

Constructor & Destructor Documentation

◆ __construct()

mod_data\output\defaulttemplate::__construct ( array $fields,
string $templatename,
bool $isform )

The class constructor.

Parameters
array$fieldsThe array containing the existing fields.
string$templatenameThe template name (addtemplate, listtemplate...).
bool$isformWhether a form should be displayed instead of data.

Member Function Documentation

◆ export_for_template()

mod_data\output\defaulttemplate::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
arrayThe data to display.

◆ get_templatename()

mod_data\output\defaulttemplate::get_templatename ( )

Obtains the mustache template name for this database template.

Return values
stringthe file mustache path for this template.

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