summaryrefslogtreecommitdiffstats
path: root/library/Pbs/Pagination.php
diff options
context:
space:
mode:
authorSimon2011-04-29 10:18:39 +0200
committerSimon2011-04-29 10:18:39 +0200
commitb87c06378211d1f6b01793148617bbf7861a2c4f (patch)
tree1f32de7872b505d1dce1fce53be3039e4cc76521 /library/Pbs/Pagination.php
parentfreeclients werden direkt mit sql gesucht (diff)
downloadpbs2-b87c06378211d1f6b01793148617bbf7861a2c4f.tar.gz
pbs2-b87c06378211d1f6b01793148617bbf7861a2c4f.tar.xz
pbs2-b87c06378211d1f6b01793148617bbf7861a2c4f.zip
Paar Mapper angepasst
Diffstat (limited to 'library/Pbs/Pagination.php')
-rw-r--r--library/Pbs/Pagination.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/library/Pbs/Pagination.php b/library/Pbs/Pagination.php
index 8d9d013..c83ec74 100644
--- a/library/Pbs/Pagination.php
+++ b/library/Pbs/Pagination.php
@@ -61,6 +61,7 @@ class Pbs_Pagination{
}
public function setPerPage($perpage){
$this->perpage = $perpage;
+ return $this;
}
public function getPerPage(){
return $this->perpage;
@@ -71,6 +72,7 @@ class Pbs_Pagination{
if($requestpage >= $this->numpages)
$requestpage = $this->numpages-1;
$this->requestpage = $requestpage;
+ return $this;
}
public function getRequestPage(){
return $this->requestpage;
@@ -79,6 +81,7 @@ class Pbs_Pagination{
$this->element = $element;
$this->maxNumber = count($element);
$this->numpages = ceil(count($element)/$this->perpage);
+ return $this;
}
public function getStartItem(){
return $this->requestpage * $this->perpage;
@@ -88,6 +91,7 @@ class Pbs_Pagination{
}
public function setPageUrl($url){
$this->pageUrl = $url;
+ return $this;
}
}