1 | <?php |
||
5 | class TwigExtension extends \Twig_Extension |
||
6 | { |
||
7 | public function getFilters () |
||
8 | { |
||
9 | return array( |
||
10 | GroupByFilter::get(), |
||
11 | OrderFilter::get(), |
||
12 | WhereFilter::get() |
||
13 | ); |
||
14 | } |
||
15 | |||
16 | public function getFunctions () |
||
17 | { |
||
18 | return array( |
||
19 | BaseUrlFunction::get(), |
||
20 | FileFunction::get() |
||
21 | ); |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Returns the name of the extension. |
||
26 | * |
||
27 | * @return string The extension name |
||
28 | */ |
||
29 | 13 | public function getName () |
|
33 | } |