You are here

public function GoogleSiteSearch::getTotalPages in Google Site Search 7

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

Get total number of pages for search.

Return value

int The total number of pages.

File

includes/GoogleSiteSearch.inc, line 239
GSS module site search inc file.

Class

GoogleSiteSearch
Class for interaction with Google Site Search.

Code

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