Loads templates from other loaders.
More...
|
| __construct (array $loaders=array()) |
| Constructor. More...
|
|
| addLoader (Twig_LoaderInterface $loader) |
| Adds a loader instance. More...
|
|
| getSource ($name) |
| {Gets the source code of a template, given its name.- Parameters
-
string | $name | The name of the template to load |
- Returns
- string The template source code
- Exceptions
-
} More...
|
|
| exists ($name) |
| {Check if we have the source code of a template, given its name.- Parameters
-
string | $name | The name of the template to check if we can load |
- Returns
- boolean If the template source code is handled by this loader or not
} More...
|
|
| getCacheKey ($name) |
| {Gets the cache key to use for the cache for a given template name.- Parameters
-
string | $name | The name of the template to load |
- Returns
- string The cache key
- Exceptions
-
} More...
|
|
| isFresh ($name, $time) |
| {Returns true if the template is still fresh.- Parameters
-
string | $name | The template name |
timestamp | $time | The last modification time of the cached template |
- Returns
- Boolean true if the template is fresh, false otherwise
- Exceptions
-
} More...
|
|
Loads templates from other loaders.
- Author
- Fabien Potencier fabie.nosp@m.n@sy.nosp@m.mfony.nosp@m..com
Definition at line 17 of file Chain.php.
__construct |
( |
array |
$loaders = array() | ) |
|
Constructor.
- Parameters
-
Twig_LoaderInterface[] | $loaders An array of loader instances |
Definition at line 27 of file Chain.php.
Adds a loader instance.
- Parameters
-
Definition at line 40 of file Chain.php.
{Check if we have the source code of a template, given its name.
- Parameters
-
string | $name | The name of the template to check if we can load |
- Returns
- boolean If the template source code is handled by this loader or not
}
Implements Twig_ExistsLoaderInterface.
Definition at line 70 of file Chain.php.
{Gets the cache key to use for the cache for a given template name.
- Parameters
-
string | $name | The name of the template to load |
- Returns
- string The cache key
- Exceptions
-
}
Implements Twig_LoaderInterface.
Definition at line 101 of file Chain.php.
{Gets the source code of a template, given its name.
- Parameters
-
string | $name | The name of the template to load |
- Returns
- string The template source code
- Exceptions
-
}
Implements Twig_LoaderInterface.
Definition at line 49 of file Chain.php.
{Returns true if the template is still fresh.
- Parameters
-
string | $name | The template name |
timestamp | $time | The last modification time of the cached template |
- Returns
- Boolean true if the template is fresh, false otherwise
- Exceptions
-
}
Implements Twig_LoaderInterface.
Definition at line 122 of file Chain.php.
The documentation for this class was generated from the following file: