1 | <?php |
||
27 | class TwigExcelExtension extends Twig_Extension |
||
28 | { |
||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $preCalculateFormulas; |
||
33 | /** |
||
34 | * @var null|string |
||
35 | */ |
||
36 | private $diskCachingDirectory; |
||
37 | |||
38 | /** |
||
39 | * @param bool $preCalculateFormulas |
||
40 | * @param null|string $diskCachingDirectory |
||
41 | */ |
||
42 | public function __construct($preCalculateFormulas = true, $diskCachingDirectory = null) |
||
47 | |||
48 | /** |
||
49 | * {@inheritdoc} |
||
50 | */ |
||
51 | public function getFunctions() |
||
55 | |||
56 | /** |
||
57 | * {@inheritdoc} |
||
58 | */ |
||
59 | public function getTokenParsers() |
||
76 | |||
77 | /** |
||
78 | * {@inheritdoc} |
||
79 | */ |
||
80 | public function getNodeVisitors() |
||
86 | |||
87 | /** |
||
88 | * {@inheritdoc} |
||
89 | */ |
||
90 | public function getName() |
||
94 | |||
95 | /** |
||
96 | * @param array $style1 |
||
97 | * @param array $style2 |
||
98 | * |
||
99 | * @return array |
||
100 | * @throws Twig_Error_Runtime |
||
101 | */ |
||
102 | public function mergeStyles(array $style1, array $style2) |
||
110 | } |
||
111 |