class StringLoader implements ILoader

Template loader.

Methods

__construct(array $templates = null)

No description

string
getContent($name)

Returns template source code.

bool
isExpired($name, $time)

No description

string
getReferredName($name, $referringName)

Returns referred template name.

string
getUniqueId($name)

Returns unique identifier for caching.

Details

at line 24
__construct(array $templates = null)

No description

Parameters

array $templates

at line 34
string getContent($name)

Returns template source code.

Parameters

$name

Return Value

string

at line 49
bool isExpired($name, $time)

No description

Parameters

$name
$time

Return Value

bool

at line 59
string getReferredName($name, $referringName)

Returns referred template name.

Parameters

$name
$referringName

Return Value

string

at line 72
string getUniqueId($name)

Returns unique identifier for caching.

Parameters

$name

Return Value

string

Traits

Better OOP experience.