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