interface LoaderInterface

LoaderInterface is the interface all loaders must implement.

Methods

Storage|bool
load(TemplateReferenceInterface $template)

Loads a template.

bool
isFresh(TemplateReferenceInterface $template, int $time)

Returns true if the template is still fresh.

Details

at line line 31
Storage|bool load(TemplateReferenceInterface $template)

Loads a template.

Parameters

TemplateReferenceInterface $template A template

Return Value

Storage|bool false if the template cannot be loaded, a Storage instance otherwise

at line line 41
bool isFresh(TemplateReferenceInterface $template, int $time)

Returns true if the template is still fresh.

Parameters

TemplateReferenceInterface $template A template
int $time The last modification time of the cached template (timestamp)

Return Value

bool