|
ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Loads templates from other loaders. More...
Inheritance diagram for Twig_Loader_Chain:
Collaboration diagram for Twig_Loader_Chain:Public Member Functions | |
| __construct (array $loaders=array()) | |
| addLoader (Twig_LoaderInterface $loader) | |
| getSource ($name) | |
| Gets the source code of a template, given its name. More... | |
| getSourceContext ($name) | |
| Returns the source context for a given template logical name. More... | |
| exists ($name) | |
| Check if we have the source code of a template, given its name. More... | |
| getCacheKey ($name) | |
| Gets the cache key to use for the cache for a given template name. More... | |
| isFresh ($name, $time) | |
| Returns true if the template is still fresh. More... | |
| getSource ($name) | |
| Gets the source code of a template, given its name. More... | |
| getCacheKey ($name) | |
| Gets the cache key to use for the cache for a given template name. More... | |
| isFresh ($name, $time) | |
| Returns true if the template is still fresh. More... | |
| exists ($name) | |
| Check if we have the source code of a template, given its name. More... | |
| getSourceContext ($name) | |
| Returns the source context for a given template logical name. More... | |
Protected Attributes | |
| $loaders = array() | |
Private Attributes | |
| $hasSourceCache = array() | |
| Twig_Loader_Chain::__construct | ( | array | $loaders = array() | ) |
| Twig_LoaderInterface[] | $loaders |
Definition at line 27 of file Chain.php.
References $loader, $loaders, and addLoader().
Here is the call graph for this function:| Twig_Loader_Chain::addLoader | ( | Twig_LoaderInterface | $loader | ) |
Definition at line 34 of file Chain.php.
References $loader.
Referenced by __construct().
Here is the caller graph for this function:| Twig_Loader_Chain::exists | ( | $name | ) |
Check if we have the source code of a template, given its name.
| string | $name | The name of the template to check if we can load |
Implements Twig_ExistsLoaderInterface.
Definition at line 82 of file Chain.php.
| Twig_Loader_Chain::getCacheKey | ( | $name | ) |
Gets the cache key to use for the cache for a given template name.
| string | $name | The name of the template to load |
| Twig_Error_Loader | When $name is not found |
Implements Twig_LoaderInterface.
Definition at line 114 of file Chain.php.
References $exceptions, $loader, $name, and sprintf.
| Twig_Loader_Chain::getSource | ( | $name | ) |
Gets the source code of a template, given its name.
| string | $name | The name of the template to load |
| Twig_Error_Loader | When $name is not found |
Implements Twig_LoaderInterface.
Definition at line 40 of file Chain.php.
References $exceptions, $loader, $name, and sprintf.
| Twig_Loader_Chain::getSourceContext | ( | $name | ) |
Returns the source context for a given template logical name.
| string | $name | The template logical name |
| Twig_Error_Loader | When $name is not found |
Implements Twig_SourceContextLoaderInterface.
Definition at line 60 of file Chain.php.
References $exceptions, $loader, $name, and sprintf.
| Twig_Loader_Chain::isFresh | ( | $name, | |
| $time | |||
| ) |
Returns true if the template is still fresh.
| string | $name | The template name |
| int | $time | Timestamp of the last modification time of the cached template |
| Twig_Error_Loader | When $name is not found |
Implements Twig_LoaderInterface.
Definition at line 132 of file Chain.php.
References $exceptions, $loader, $name, $time, and sprintf.
|
protected |
Definition at line 22 of file Chain.php.
Referenced by __construct().