PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions
Twig_LoaderInterface Interface Reference

Interface all loaders must implement. More...

Inheritance diagram for Twig_LoaderInterface:
Twig_Loader_Array Twig_Loader_Chain Twig_Loader_Filesystem Twig_Loader_String

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...
 

Detailed Description

Interface all loaders must implement.

Author
Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com

Definition at line 17 of file LoaderInterface.php.

Member Function Documentation

getCacheKey (   $name)

Gets the cache key to use for the cache for a given template name.

Parameters
string$nameThe name of the template to load
Returns
string The cache key
Exceptions
Twig_Error_LoaderWhen $name is not found

Implemented in Twig_Loader_Filesystem, Twig_Loader_Chain, Twig_Loader_Array, and Twig_Loader_String.

getSource (   $name)

Gets the source code of a template, given its name.

Parameters
string$nameThe name of the template to load
Returns
string The template source code
Exceptions
Twig_Error_LoaderWhen $name is not found

Implemented in Twig_Loader_Filesystem, Twig_Loader_Array, Twig_Loader_Chain, and Twig_Loader_String.

isFresh (   $name,
  $time 
)

Returns true if the template is still fresh.

Parameters
string$nameThe template name
timestamp$timeThe last modification time of the cached template
Returns
Boolean true if the template is fresh, false otherwise
Exceptions
Twig_Error_LoaderWhen $name is not found

Implemented in Twig_Loader_Filesystem, Twig_Loader_Chain, Twig_Loader_Array, and Twig_Loader_String.


The documentation for this interface was generated from the following file:

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:44 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.