class SS_TemplateLoader (View source)

Handles finding templates from a stack of template manifest objects.

Properties

protected SS_TemplateManifest[] $manifests

Methods

public static 
instance()

No description

public
getManifest()

Returns the currently active template manifest instance.

public
pushManifest(SS_TemplateManifest $manifest)

No description

public
popManifest()

No description

public
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

static SS_TemplateLoader instance()

No description

Return Value

SS_TemplateLoader

SS_TemplateManifest getManifest()

Returns the currently active template manifest instance.

Return Value

SS_TemplateManifest

pushManifest(SS_TemplateManifest $manifest)

No description

Parameters

SS_TemplateManifest $manifest

SS_TemplateManifest popManifest()

No description

Return Value

SS_TemplateManifest

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