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;