| 1 | <?php |
||
| 18 | class PaginationExtension extends \Twig_Extension |
||
| 19 | { |
||
| 20 | /** |
||
| 21 | * @var string |
||
| 22 | */ |
||
| 23 | protected $template = ''; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * @param string $template |
||
| 27 | */ |
||
| 28 | public function __construct($template) |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | public function getFunctions() |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Renders the pagination template |
||
| 49 | * |
||
| 50 | * @param \Twig_Environment $env |
||
| 51 | * @param Configuration $pagination |
||
| 52 | * @param string $template |
||
| 53 | * @param array $view_params |
||
| 54 | * |
||
| 55 | * @return string |
||
| 56 | */ |
||
| 57 | public function render( |
||
| 71 | |||
| 72 | /** |
||
| 73 | * @return string |
||
| 74 | */ |
||
| 75 | public function getName() |
||
| 79 | } |
||
| 80 |