Commit 44db0e72 by Taylor Otwell

Refactoring the paginator class again...

parent dac63a50
......@@ -188,6 +188,16 @@ class Paginator {
}
/**
* 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.
*
* For the current page, an HTML span element will be generated instead of a link.
......@@ -209,16 +219,6 @@ class Paginator {
}
/**
* 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.
*
* @param string $language
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment