Function __global->_do_template
Definitions
sources/tempcode_compiler.php
- A template has not been structurally cached, so compile it and store in the cache.
- Is abstract?: No
- Is static?: No
- Is final?: No
- Return: object
Parameters
Name | Type | Default | Set | Range | Description |
---|---|---|---|---|---|
$theme | ID_TEXT | required parameter | N/A | N/A | The theme the template is in the context of |
$directory | string | required parameter | N/A | N/A | Subdirectory type to look in. Surrounded by '/', unlike with $directory parameters to most other functions (performance reasons) |
$codename | ID_TEXT | required parameter | N/A | N/A | The codename of the template |
$_codename | ID_TEXT | required parameter | N/A | N/A | The actual codename to use for the template in the cache (e.g. foo_mobile) |
$lang | LANGUAGE_NAME | required parameter | N/A | N/A | The language the template is in the context of |
$suffix | string | required parameter | N/A | N/A | File type suffix of template file (e.g. .tpl) |
$theme_orig | ?ID_TEXT | Null | N/A | N/A | The theme to cache in (null: main theme) |
$parameters | ?array | Null | N/A | N/A | Parameters to hard-code in during compilation (null: no hard-coding) |
$non_custom_only | boolean | False | N/A | N/A | Whether we only searched in the default templates |
Return
- The compiled Tempcode
- Type: Tempcode
- Set: N/A
- Range: N/A