Total Complexity | 5 |
Total Lines | 32 |
Duplicated Lines | 0 % |
Coverage | 54.55% |
Changes | 0 |
1 | <?php |
||
7 | class UtilitaExtension extends \Twig_Extension |
||
8 | { |
||
9 | public $container; |
||
10 | /** |
||
11 | * {@inheritdoc} |
||
12 | */ |
||
13 | public function getFunctions() |
||
18 | ); |
||
19 | } |
||
20 | |||
21 | public function getFilters() |
||
22 | { |
||
23 | return array( |
||
24 | new \Twig_SimpleFilter('getparametrotabella', array($this, 'getParametroTabella')), |
||
25 | ); |
||
26 | } |
||
27 | |||
28 | 7 | public function jsonDecode($string) |
|
31 | } |
||
32 | 11 | public function getParameter($parameter) |
|
35 | } |
||
36 | 11 | public function getParametroTabella($parametro) |
|
41 |