interface TemplateSource

Methods

static mixed
load(string $hostObj, string $fileName)

Loads the template.

static mixed
loadCached(string $hostObj, string $fileName)

Loads and caches the template.

string
getFilePath(string $fileName = null)

Returns the local file path to the template.

string
getFileName()

Returns the file name.

string
getBaseFileName()

Returns the file name without the extension.

string
getContent()

Returns the file content.

string
getMarkup()

Gets the markup section of a template

string
getCode()

Gets the code section of a template

string
getTemplateCacheKey()

Returns the key used by the Template cache.

Details

at line 15
static mixed load(string $hostObj, string $fileName)

Loads the template.

Parameters

string $hostObj
string $fileName

Return Value

mixed

at line 25
static mixed loadCached(string $hostObj, string $fileName)

Loads and caches the template.

Parameters

string $hostObj
string $fileName

Return Value

mixed

at line 34
string getFilePath(string $fileName = null)

Returns the local file path to the template.

Parameters

string $fileName

Return Value

string

at line 40
string getFileName()

Returns the file name.

Return Value

string

at line 46
string getBaseFileName()

Returns the file name without the extension.

Return Value

string

at line 52
string getContent()

Returns the file content.

Return Value

string

at line 58
string getMarkup()

Gets the markup section of a template

Return Value

string

The template source code

at line 64
string getCode()

Gets the code section of a template

Return Value

string

The template source code

at line 70
string getTemplateCacheKey()

Returns the key used by the Template cache.

Return Value

string