class Twig_Loader_Chain implements Twig_LoaderInterface, Twig_ExistsLoaderInterface
Loads templates from other loaders.
Methods
|
__construct(array $loaders = array())
Constructor. |
||
|
addLoader(Twig_LoaderInterface $loader)
Adds a loader instance. |
||
| string |
getSource(string $name)
Gets the source code of a template, given its name. |
|
| boolean |
exists(string $name)
Check if we have 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. |
|
| Boolean |
isFresh(string $name, timestamp $time)
Returns true if the template is still fresh. |
Details
at line 27
public
__construct(array $loaders = array())
Constructor.
at line 40
public
addLoader(Twig_LoaderInterface $loader)
Adds a loader instance.
at line 49
public string
getSource(string $name)
Gets the source code of a template, given its name.
at line 70
public boolean
exists(string $name)
Check if we have the source code of a template, given its name.
at line 97
public string
getCacheKey(string $name)
Gets the cache key to use for the cache for a given template name.
at line 118
public Boolean
isFresh(string $name, timestamp $time)
Returns true if the template is still fresh.