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

Public Member Functions

 __construct (manager $manager, string $templatename)
 The class constructor.
 
 export_for_template (\renderer_base $output)
 Export the data for the mustache template.
 

Protected Member Functions

 get_action_tags (string $templatename)
 Return the field action tags.
 
 get_field_info_tags (string $templatename)
 Return the field information template tags.
 
 get_field_tags (string $templatename)
 Return the field template tags.
 
 get_optgroup_data (string $name, array $taglist)
 Generate a valid optgroup data.
 
 get_other_tags (string $templatename)
 Return the available other tags.
 

Constructor & Destructor Documentation

◆ __construct()

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

The class constructor.

Parameters
manager$managerthe activity instance manager
string$templatenamethe template to edit

Member Function Documentation

◆ export_for_template()

mod_data\output\template_editor_tools::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

◆ get_action_tags()

mod_data\output\template_editor_tools::get_action_tags ( string $templatename)
protected

Return the field action tags.

Parameters
string$templatenamethe template name
Return values
array|nullarray of tags.

◆ get_field_info_tags()

mod_data\output\template_editor_tools::get_field_info_tags ( string $templatename)
protected

Return the field information template tags.

Parameters
string$templatenamethe template name
Return values
array|nullarray of tags.

◆ get_field_tags()

mod_data\output\template_editor_tools::get_field_tags ( string $templatename)
protected

Return the field template tags.

Parameters
string$templatenamethe template name
Return values
array|nullarray of tags.

◆ get_optgroup_data()

mod_data\output\template_editor_tools::get_optgroup_data ( string $name,
array $taglist )
protected

Generate a valid optgroup data.

Parameters
string$namethe optgroup name
array$taglistthe indexed array of taglists ($tag => $tagname)
Return values
arrayof optgroup data

◆ get_other_tags()

mod_data\output\template_editor_tools::get_other_tags ( string $templatename)
protected

Return the available other tags.

Parameters
string$templatenamethe template name
Return values
arrayassociative array of tags => tag name

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