class StringLoader implements ILoader

Template loader.

Traits

Better OOP experience.

Methods

__construct(array $templates = null)

No description

getContent($name)

Returns template source code.

isExpired($name, $time)

Checks whether template is expired.

getReferredName($name, $referringName)

Returns referred template name.

getUniqueId($name)

Returns unique identifier for caching.

Details

at line 26
__construct(array $templates = null)

Parameters

array $templates

at line 35
getContent($name)

Returns template source code.

Parameters

$name

at line 47
isExpired($name, $time)

Checks whether template is expired.

Parameters

$name
$time

at line 56
getReferredName($name, $referringName)

Returns referred template name.

Parameters

$name
$referringName

at line 68
getUniqueId($name)

Returns unique identifier for caching.

Parameters

$name