| 1 | <?php |
||
| 7 | class PagerfantaFilter extends RequestFilter |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The current page that should be retrieved by the pager |
||
| 11 | * |
||
| 12 | * @var int |
||
| 13 | */ |
||
| 14 | protected $currentPage = 1; |
||
| 15 | |||
| 16 | 8 | /** |
|
| 17 | * Filter request |
||
| 18 | 8 | * |
|
| 19 | * @param Request $request |
||
| 20 | 8 | */ |
|
| 21 | public function filter(Request $request) |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Return the current page that should be retrieved by the pager |
||
| 32 | * |
||
| 33 | * @return int |
||
| 34 | 8 | */ |
|
| 35 | public function getCurrentPage() |
||
| 39 | } |
||
| 40 |