1 | <?php |
||
9 | class Generic extends \Twig_Extension |
||
10 | { |
||
11 | /** |
||
12 | * @var ContainerInterface |
||
13 | */ |
||
14 | protected $container; |
||
15 | |||
16 | /** |
||
17 | * @var SettingsHelper |
||
18 | */ |
||
19 | protected $settingsHelper; |
||
20 | |||
21 | public function __construct(ContainerInterface $container) |
||
26 | |||
27 | /** |
||
28 | * @inheritdoc |
||
29 | */ |
||
30 | public function getGlobals() |
||
35 | |||
36 | /** |
||
37 | * @inheritdoc |
||
38 | */ |
||
39 | public function getFunctions() |
||
58 | |||
59 | public function getFilters() |
||
68 | |||
69 | /** |
||
70 | * @param $key |
||
71 | * @param string $default |
||
72 | * |
||
73 | * @return null|mixed |
||
74 | */ |
||
75 | public function getSettingsParameter($key, $default = null) |
||
89 | |||
90 | public function getRandomString($length = 8) |
||
101 | |||
102 | /** |
||
103 | * @param $total |
||
104 | * @param $pie |
||
105 | * |
||
106 | * @return string |
||
107 | */ |
||
108 | public function calculatePercent($total, $pie) |
||
122 | |||
123 | /** |
||
124 | * @param $email |
||
125 | * |
||
126 | * @return string |
||
127 | */ |
||
128 | public function getObfuscatedEmail($email) |
||
136 | |||
137 | /** |
||
138 | * @param $context |
||
139 | * @param $path |
||
140 | * |
||
141 | * @return mixed |
||
142 | */ |
||
143 | public function getContextValue($context, $path) |
||
149 | |||
150 | /** |
||
151 | * @param $string |
||
152 | * |
||
153 | * @return string |
||
154 | */ |
||
155 | public function cleanWhiteSpace($string) |
||
159 | |||
160 | public function match($subject, $pattern) |
||
164 | |||
165 | public function dumpExit($val) |
||
170 | |||
171 | /** |
||
172 | * @api |
||
173 | */ |
||
174 | public function getName() |
||
178 | } |
||
179 |
This class, trait or interface has been deprecated. The supplier of the file has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the type will be removed from the class and what other constant to use instead.