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:
pzinovkin
2009-06-24 19:42:34 +00:00
parent 74b4a4fa14
commit 9e11da3285

View File

@ -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; $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() public function startOffset()
{ {
return $this->start_offset; return $this->start_offset;