1 | <?php |
||
21 | class PhalconFrameworkPaginatorAdapter implements PaginatorInterface |
||
22 | { |
||
23 | /** |
||
24 | * A slice of the result set to show in the pagination |
||
25 | * |
||
26 | * @var \stdClass |
||
27 | */ |
||
28 | private $paginator; |
||
29 | |||
30 | /** |
||
31 | * PhalconFrameworkPaginatorAdapter constructor. |
||
32 | * |
||
33 | * @param \stdClass $paginator |
||
34 | */ |
||
35 | 1 | public function __construct($paginator) |
|
39 | |||
40 | /** |
||
41 | * Get the current page. |
||
42 | * |
||
43 | * @return int |
||
44 | */ |
||
45 | 1 | public function getCurrentPage() |
|
49 | |||
50 | /** |
||
51 | * Get the last page. |
||
52 | * |
||
53 | * @return int |
||
54 | */ |
||
55 | 1 | public function getLastPage() |
|
59 | |||
60 | /** |
||
61 | * Get the total. |
||
62 | * |
||
63 | * @return int |
||
64 | */ |
||
65 | 1 | public function getTotal() |
|
69 | |||
70 | /** |
||
71 | * Get the count. |
||
72 | * |
||
73 | * @return int |
||
74 | */ |
||
75 | 1 | public function getCount() |
|
79 | |||
80 | /** |
||
81 | * Get the number per page. |
||
82 | * |
||
83 | * @return int |
||
84 | */ |
||
85 | 1 | public function getPerPage() |
|
91 | |||
92 | /** |
||
93 | * Get the next. |
||
94 | * |
||
95 | * @return int |
||
96 | */ |
||
97 | 1 | public function getNext() |
|
101 | |||
102 | /** |
||
103 | * Get the url for the given page. |
||
104 | * |
||
105 | * @param int $page |
||
106 | * |
||
107 | * @return string |
||
108 | */ |
||
109 | public function getUrl($page) |
||
113 | } |
||
114 |