1 | <?php |
||
13 | class PaginationExtension extends \Twig_Extension |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | protected $template = ''; |
||
19 | |||
20 | /** |
||
21 | * @param string $template |
||
22 | */ |
||
23 | 5 | public function __construct($template) |
|
27 | |||
28 | /** |
||
29 | * @return array |
||
30 | */ |
||
31 | 1 | public function getFunctions() |
|
41 | |||
42 | /** |
||
43 | * @param \Twig_Environment $env |
||
44 | * @param Configuration $pagination |
||
45 | * @param string $template |
||
46 | * @param array $view_params |
||
47 | * |
||
48 | * @return string |
||
49 | */ |
||
50 | 3 | public function renderPagination( |
|
64 | |||
65 | /** |
||
66 | * @return string |
||
67 | */ |
||
68 | 1 | public function getName() |
|
72 | } |
||
73 |