|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Interface all loaders must implement. More...
Inheritance diagram for Twig_LoaderInterface:
Collaboration diagram for Twig_LoaderInterface:Public Member Functions | |
| 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... | |
Interface all loaders must implement.
Definition at line 17 of file LoaderInterface.php.
| Twig_LoaderInterface::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 |
Implemented in Twig_Loader_Array, Twig_Loader_Chain, Twig_Loader_Filesystem, and Twig_Loader_String.
| Twig_LoaderInterface::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 |
Implemented in Twig_Loader_Array, Twig_Loader_Chain, Twig_Loader_Filesystem, and Twig_Loader_String.
| Twig_LoaderInterface::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 |
Implemented in Twig_Loader_Array, Twig_Loader_Chain, Twig_Loader_Filesystem, and Twig_Loader_String.