Gets the current page from the pager.
int The current page.
public function getCurrentPage() { // If the pager is already initialized, pass it through to the pager. if (!empty($this->pager)) { return $this->pager ->getCurrentPage(); } if (isset($this->current_page)) { return $this->current_page; } }