◆ __construct()
mod_data\output\defaulttemplate::__construct |
( |
array | $fields, |
|
|
string | $templatename, |
|
|
bool | $isform ) |
The class constructor.
- Parameters
-
array | $fields | The array containing the existing fields. |
string | $templatename | The template name (addtemplate, listtemplate...). |
bool | $isform | Whether a form should be displayed instead of data. |
◆ export_for_template()
mod_data\output\defaulttemplate::export_for_template |
( |
\renderer_base | $output | ) |
|
Export the data for the mustache template.
- Parameters
-
renderer_base | $output | The renderer to be used to render the action bar elements. |
- Return values
-
array | The data to display. |
◆ get_templatename()
mod_data\output\defaulttemplate::get_templatename |
( |
| ) |
|
Obtains the mustache template name for this database template.
- Return values
-
string | the file mustache path for this template. |
The documentation for this class was generated from the following file:
- mod/data/classes/output/defaulttemplate.php