1 | <?php |
||
23 | class Extension extends \Twig_Extension |
||
24 | { |
||
25 | /** |
||
26 | * @return array |
||
27 | */ |
||
28 | public function getFilters() |
||
34 | /** |
||
35 | * @param int $bytes Bytes/Octets |
||
36 | * @param int $decimals Number for decimals to return |
||
37 | * @param bool $octetFormat Use Octet notation instead of Bytes |
||
38 | * @param string $separator The unit separator |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | public function size_format($bytes, $decimals = 2, $octetFormat = false, $separator = '') |
||
50 | |||
51 | /** |
||
52 | * Extension name |
||
53 | * |
||
54 | * @return string |
||
55 | */ |
||
56 | public function getName() |
||
60 | } |