class ChainLoader extends Loader
ChainLoader is a loader that calls other loaders to load templates.
Methods
|
__construct(array $loaders = array())
Constructor. |
||
|
addLoader(LoaderInterface $loader)
Adds a loader instance. |
||
| Storage|Boolean |
load(TemplateReferenceInterface $template)
Loads a template. |
|
| Boolean |
isFresh(TemplateReferenceInterface $template, integer $time)
Returns true if the template is still fresh. |
Details
at line 31
public
__construct(array $loaders = array())
Constructor.
at line 44
public
addLoader(LoaderInterface $loader)
Adds a loader instance.
at line 56
public Storage|Boolean
load(TemplateReferenceInterface $template)
Loads a template.
at line 75
public Boolean
isFresh(TemplateReferenceInterface $template, integer $time)
Returns true if the template is still fresh.