You are here

public function GoogleSiteSearch::GetTotalPages in Google Site Search 6

Same name and namespace in other branches
  1. 7 includes/GoogleSiteSearch.inc \GoogleSiteSearch::getTotalPages()

Get total number of pages for search.

Return value

int Total number of pages.

1 call to GoogleSiteSearch::GetTotalPages()
GoogleSiteSearch::GetPager in includes/GoogleSiteSearch.inc
Get a pager for the search results.

File

includes/GoogleSiteSearch.inc, line 174

Class

GoogleSiteSearch
Class for interaction with Google Site Search.

Code

public function GetTotalPages() {
  return $this->totalResults / $this->pageSize + 1;
}