Refactoring the paginator class again...
This commit is contained in:
parent
dac63a50c6
commit
44db0e72f9
|
@ -187,6 +187,16 @@ private function dots()
|
|||
return HTML::span('...', array('class' => 'dots')).' ';
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the last page number based on the total pages and per page limit.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
private function last_page()
|
||||
{
|
||||
return ceil($this->total / $this->per_page);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a range of page links.
|
||||
*
|
||||
|
@ -208,16 +218,6 @@ private function range($start, $end)
|
|||
return $pages;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine the last page number based on the total pages and per page limit.
|
||||
*
|
||||
* @return int
|
||||
*/
|
||||
private function last_page()
|
||||
{
|
||||
return ceil($this->total / $this->per_page);
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the language that should be used when generating page links.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue