getPage method, #nakon🎫326
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@101 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user