PEEL Shopping
Open source ecommerce : PEEL Shopping
|
Loads a template from a string. More...
Public Member Functions | |||||||||
getSource ($name) | |||||||||
{Gets the source code of a template, given its name.
| |||||||||
exists ($name) | |||||||||
{Check if we have the source code of a template, given its name.
| |||||||||
getCacheKey ($name) | |||||||||
{Gets the cache key to use for the cache for a given template name.
| |||||||||
isFresh ($name, $time) | |||||||||
{Returns true if the template is still fresh.
| |||||||||
Loads a template from a string.
This loader should only be used for unit testing as it has many limitations (for instance, the include or extends tag does not make any sense for a string loader).
When using this loader with a cache mechanism, you should know that a new cache key is generated each time a template content "changes" (the cache key being the source code of the template). If you don't want to see your cache grows out of control, you need to take care of clearing the old cache file by yourself.
Definition at line 26 of file String.php.
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 39 of file String.php.
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 47 of file String.php.
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 31 of file String.php.
isFresh | ( | $name, | |
$time | |||
) |
{Returns true if the template is still fresh.
string | $name | The template name |
timestamp | $time | The last modification time of the cached template |
Twig_Error_Loader | When $name is not found |
Implements Twig_LoaderInterface.
Definition at line 55 of file String.php.
This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:44 - is a product of SAS. All rights reserved.