ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Loads templates from other loaders. More...
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... | |
Protected Attributes | |
$loaders = array() | |
Private Attributes | |
$hasSourceCache = array() | |
Twig_LoaderInterface[] | $loaders |
Definition at line 27 of file Chain.php.
References $loader, $loaders, and addLoader().
Twig_Loader_Chain::addLoader | ( | Twig_LoaderInterface | $loader | ) |
Definition at line 34 of file Chain.php.
References $loader, and array.
Referenced by __construct().
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.
References $loader, $name, and string.
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, array, and Twig_ExistsLoaderInterface\exists().
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, array, and Twig_ExistsLoaderInterface\exists().
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, array, and Twig_ExistsLoaderInterface\exists().
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, array, and Twig_ExistsLoaderInterface\exists().
|
protected |
Definition at line 22 of file Chain.php.
Referenced by __construct().