From 44db0e72f949bc2b8a19b6a3d60fc481ef3b2971 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Mon, 25 Jul 2011 12:16:27 -0700 Subject: [PATCH] Refactoring the paginator class again... --- system/paginator.php | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/system/paginator.php b/system/paginator.php index a8a7378b..a15a13bf 100644 --- a/system/paginator.php +++ b/system/paginator.php @@ -187,6 +187,16 @@ class Paginator { 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 @@ class Paginator { 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. *