class SS_TemplateLoader

Handles finding templates from a stack of template manifest objects.

Methods

instance()

No description

getManifest()

Returns the currently active template manifest instance.

pushManifest(SS_TemplateManifest $manifest)

No description

popManifest()

No description

array
findTemplates(string|array $templates, string $theme = null)

Attempts to find possible candidate templates from a set of template names from modules, current theme directory and finally the application folder.

Details

at line 23
static SS_TemplateLoader instance()

Return Value

SS_TemplateLoader

at line 32
SS_TemplateManifest getManifest()

Returns the currently active template manifest instance.

Return Value

SS_TemplateManifest

at line 39
pushManifest(SS_TemplateManifest $manifest)

Parameters

SS_TemplateManifest $manifest

at line 46
SS_TemplateManifest popManifest()

Return Value

SS_TemplateManifest

at line 64
array findTemplates(string|array $templates, string $theme = null)

Attempts to find possible candidate templates from a set of template names from modules, current theme directory and finally the application folder.

The template names can be passed in as plain strings, or be in the format "type/name", where type is the type of template to search for (e.g. Includes, Layout).

Parameters

string|array $templates
string $theme

Return Value

array