1 | <?php |
||
4 | class Page |
||
5 | { |
||
6 | /** |
||
7 | * @var int |
||
8 | */ |
||
9 | private $currPage; |
||
10 | |||
11 | /** |
||
12 | * set $page to 0 to disable the page. |
||
13 | * |
||
14 | * @var int |
||
15 | */ |
||
16 | private $page; |
||
17 | |||
18 | /** |
||
19 | * @var string |
||
20 | */ |
||
21 | private $pagerKey; |
||
22 | |||
23 | /** |
||
24 | * Page constructor. |
||
25 | * |
||
26 | * @param string $key |
||
27 | * @param int $currPage |
||
28 | * @param int $page |
||
29 | */ |
||
30 | public function __construct($key, $currPage, $page) |
||
36 | |||
37 | /** |
||
38 | * @return int |
||
39 | */ |
||
40 | public function getPage() |
||
44 | |||
45 | /** |
||
46 | * @return bool |
||
47 | */ |
||
48 | public function isCurrent() |
||
52 | |||
53 | /** |
||
54 | * @return bool |
||
55 | */ |
||
56 | public function isDisabled() |
||
60 | |||
61 | /** |
||
62 | * @return string |
||
63 | */ |
||
64 | public function getUrl() |
||
71 | } |