Browse Source

getPage method, #nakon🎫326

git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/trunk@101 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
master
pzinovkin 16 years ago
parent
commit
9e11da3285
  1. 10
      classes/Pager.class.php

10
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;

Loading…
Cancel
Save