Revision 1852
Added by darkviper almost 12 years ago
LoaderInterface.php | ||
---|---|---|
20 | 20 |
/** |
21 | 21 |
* Gets the source code of a template, given its name. |
22 | 22 |
* |
23 |
* @param string $name The name of the template to load
|
|
23 |
* @param string $name The name of the template to load |
|
24 | 24 |
* |
25 | 25 |
* @return string The template source code |
26 | 26 |
* |
27 | 27 |
* @throws Twig_Error_Loader When $name is not found |
28 | 28 |
*/ |
29 |
function getSource($name); |
|
29 |
public function getSource($name);
|
|
30 | 30 |
|
31 | 31 |
/** |
32 | 32 |
* Gets the cache key to use for the cache for a given template name. |
33 | 33 |
* |
34 |
* @param string $name The name of the template to load
|
|
34 |
* @param string $name The name of the template to load |
|
35 | 35 |
* |
36 | 36 |
* @return string The cache key |
37 | 37 |
* |
38 | 38 |
* @throws Twig_Error_Loader When $name is not found |
39 | 39 |
*/ |
40 |
function getCacheKey($name); |
|
40 |
public function getCacheKey($name);
|
|
41 | 41 |
|
42 | 42 |
/** |
43 | 43 |
* Returns true if the template is still fresh. |
... | ... | |
49 | 49 |
* |
50 | 50 |
* @throws Twig_Error_Loader When $name is not found |
51 | 51 |
*/ |
52 |
function isFresh($name, $time); |
|
52 |
public function isFresh($name, $time);
|
|
53 | 53 |
} |
Also available in: Unified diff
updated Twig template engine to stable version 1.11.1 step2