-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcPagination.php
More file actions
executable file
·60 lines (47 loc) · 1.11 KB
/
Copy pathcPagination.php
File metadata and controls
executable file
·60 lines (47 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<?php
class CPagination
{
private $offset = 0;
private $currentPage = 1;
private $lastPage = 1;
private $resultsQty = 0;
private $pagesVector = array();
private $showing = array();
public function setOffset($offset) {
$this->offset = $offset;
}
public function setCurrentPage($currentPage) {
$this->currentPage = $currentPage;
}
public function setLastPage($lastPage) {
$this->lastPage = $lastPage;
}
public function setResultsQty($resultsQty) {
$this->resultsQty = $resultsQty;
}
public function setPagesVector($pagesVector) {
$this->pagesVector = $pagesVector;
}
public function setShowing($showing) {
$this->showing = $showing;
}
public function getOffset() {
return $this->offset;
}
public function getCurrentPage() {
return $this->currentPage;
}
public function getLastPage() {
return $this->lastPage;
}
public function getResultsQty() {
return $this->resultsQty;
}
public function getPagesVector() {
return $this->pagesVector;
}
public function getShowing() {
return $this->showing;
}
}
?>