API exposed by tool_templatelibrary.  
 More...
API exposed by tool_templatelibrary. 
- Copyright
- 2015 Damyon Wiese 
- License
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later 
◆ list_templates()
  
  | 
        
          | static tool_templatelibrary\api::list_templates | ( |  | $component = '', |  
          |  |  |  | $search = '', |  
          |  |  |  | $themename = '' ) |  | static | 
 
Return a list of details about installed templates. 
- Parameters
- 
  
    | string | $component | Filter the list to a single component. |  | string | $search | Search string to optionally filter the list of templates. |  | string | $themename | The name of the current theme. |  
 
- Return values
- 
  
    | array[string] | Where each template is in the form "component/templatename". |  
 
 
 
◆ load_canonical_template()
  
  | 
        
          | static tool_templatelibrary\api::load_canonical_template | ( |  | $component, |  
          |  |  |  | $template ) |  | static | 
 
Return a mustache template. 
Note - this function differs from the function core_output_load_template because it will never return a theme overridden version of a template.
- Parameters
- 
  
    | string | $component | The component that holds the template. |  | string | $template | The name of the template. |  
 
- Return values
- 
  
    | string | the template or false if template doesn't exist. |  
 
 
 
The documentation for this class was generated from the following file:
- admin/tool/templatelibrary/classes/api.php