| 1 | <?php |
||
| 20 | class PhalconFrameworkPaginatorAdapter implements PaginatorInterface |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * A slice of the result set to show in the pagination |
||
| 24 | * |
||
| 25 | * @var \Phalcon\Paginator\AdapterInterface |
||
| 26 | */ |
||
| 27 | private $paginator; |
||
| 28 | |||
| 29 | |||
| 30 | 1 | public function __construct($paginator) |
|
| 34 | |||
| 35 | /** |
||
| 36 | * Get the current page. |
||
| 37 | * |
||
| 38 | * @return int |
||
| 39 | */ |
||
| 40 | 1 | public function getCurrentPage() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Get the last page. |
||
| 47 | * |
||
| 48 | * @return int |
||
| 49 | */ |
||
| 50 | 1 | public function getLastPage() |
|
| 54 | |||
| 55 | /** |
||
| 56 | * Get the total. |
||
| 57 | * |
||
| 58 | * @return int |
||
| 59 | */ |
||
| 60 | 1 | public function getTotal() |
|
| 64 | |||
| 65 | /** |
||
| 66 | * Get the count. |
||
| 67 | * |
||
| 68 | * @return int |
||
| 69 | */ |
||
| 70 | 1 | public function getCount() |
|
| 74 | |||
| 75 | /** |
||
| 76 | * Get the number per page. |
||
| 77 | * |
||
| 78 | * @return int |
||
| 79 | */ |
||
| 80 | public function getPerPage() |
||
| 84 | |||
| 85 | /** |
||
| 86 | * Get the next. |
||
| 87 | * |
||
| 88 | * @return int |
||
| 89 | */ |
||
| 90 | public function getNext() |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Get the url for the given page. |
||
| 97 | * |
||
| 98 | * @param int $page |
||
| 99 | * |
||
| 100 | * @return string |
||
| 101 | */ |
||
| 102 | public function getUrl($page) |
||
| 106 | } |
||
| 107 |