Function __global->get_template_files_list
Definitions
sources/themes2.php
- Get all the templates for a theme.
- Visibility: public
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: array
Parameters
| Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
|---|---|---|---|---|---|---|---|
| $theme | ID_TEXT | No | No | required parameter | N/A | N/A | The theme to search for |
| $directory | string | No | No | required parameter | templates javascript xml text css | N/A | Subdirectory type to look in |
| $suffix | ?string | No | No | Null | .tpl .js .xml .txt .css | N/A | File type suffix of template file (e.g. .tpl) (null: calculate for the $directory norm) |
| $this_theme_only | boolean | No | No | False | N/A | N/A | Just for this theme |
Returns
- A map of the files (file=>path)
- Type: array
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Get all the templates for a theme.
*
* @param ID_TEXT $theme The theme to search for
* @param string $directory Subdirectory type to look in
* @set templates javascript xml text css
* @param ?string $suffix File type suffix of template file (e.g. .tpl) (null: calculate for the $directory norm)
* @set .tpl .js .xml .txt .css
* @param boolean $this_theme_only Just for this theme
* @return array A map of the files (file=>path)
*/
function get_template_files_list(string $theme, string $directory, ?string $suffix = null, bool $this_theme_only = false) : array
* Get all the templates for a theme.
*
* @param ID_TEXT $theme The theme to search for
* @param string $directory Subdirectory type to look in
* @set templates javascript xml text css
* @param ?string $suffix File type suffix of template file (e.g. .tpl) (null: calculate for the $directory norm)
* @set .tpl .js .xml .txt .css
* @param boolean $this_theme_only Just for this theme
* @return array A map of the files (file=>path)
*/
function get_template_files_list(string $theme, string $directory, ?string $suffix = null, bool $this_theme_only = false) : array
