interface TemplateLoader

Methods

getFilename($name)

No description

string
getMarkup(string $name)

Gets the markup section of a template, given its name.

string
getContents(string $name)

Gets the source code of a template, given its name.

string
getCacheKey(string $name)

Gets the cache key to use for the cache for a given template name.

bool
isFresh(string $name, int $time)

Returns true if the template is still fresh.

exists($name)

No description

Details

at line 9
getFilename($name)

No description

Parameters

$name

at line 20
string getMarkup(string $name)

Gets the markup section of a template, given its name.

Parameters

string $name

The name of the template to load

Return Value

string

The template source code

Exceptions

Exception

at line 31
string getContents(string $name)

Gets the source code of a template, given its name.

Parameters

string $name

The name of the template to load

Return Value

string

The template source code

Exceptions

Exception

at line 42
string getCacheKey(string $name)

Gets the cache key to use for the cache for a given template name.

Parameters

string $name

The name of the template to load

Return Value

string

The cache key

Exceptions

Exception

at line 55
bool isFresh(string $name, int $time)

Returns true if the template is still fresh.

Parameters

string $name

The template name

int $time

Timestamp of the last modification time of the cached template

Return Value

bool

true if the template is fresh, false otherwise

Exceptions

Exception

at line 57
exists($name)

No description

Parameters

$name