From 9e11da3285bf924bd3843df336968533eaeeed3c Mon Sep 17 00:00:00 2001 From: pzinovkin Date: Wed, 24 Jun 2009 19:42:34 +0000 Subject: [PATCH] getPage method, #nakon:ticket:326 git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@101 4cb57b5f-5bbd-dd11-951b-001d605cbbc5 --- classes/Pager.class.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/classes/Pager.class.php b/classes/Pager.class.php index aefb8eb..617a0bd 100644 --- a/classes/Pager.class.php +++ b/classes/Pager.class.php @@ -37,6 +37,16 @@ class Pager extends Action $this->num_rows = ($this->limit + $this->start_offset) <= $this->count ? ($this->limit + $this->start_offset) : $this->count; } + /** + * Возвращает текущую страницу + * + * @return int + */ + public function getPage() + { + return $this->current_page; + } + public function startOffset() { return $this->start_offset;