1 | <?php |
||
16 | class PaginationExtension extends \Twig_Extension |
||
17 | { |
||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | protected $template = ''; |
||
22 | |||
23 | /** |
||
24 | * @param string $template |
||
25 | */ |
||
26 | 5 | public function __construct($template) |
|
30 | |||
31 | /** |
||
32 | * @return array |
||
33 | */ |
||
34 | 1 | public function getFunctions() |
|
44 | |||
45 | /** |
||
46 | * Renders the pagination template. |
||
47 | * |
||
48 | * @param \Twig_Environment $env |
||
49 | * @param Configuration $pagination |
||
50 | * @param string $template |
||
51 | * @param array $view_params |
||
52 | * |
||
53 | * @return string |
||
54 | */ |
||
55 | 3 | public function render( |
|
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | 1 | public function getName() |
|
77 | } |
||
78 |