You are here

public function GoogleSiteSearch::__construct in Google Site Search 7

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

Create a new instance of GoogleSiteSearch.

Parameters

string $query: The search string.

string $key: The Google API key.

int $page_size: The number of results to return per page.

string $extra_params: Extra parameters to be passed onto Google CSE.

File

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

Class

GoogleSiteSearch
Class for interaction with Google Site Search.

Code

public function __construct($query, $key = NULL, $page_size = 20, $extra_params = NULL) {
  $this->query = $query;
  $this->key = $key;
  $this->pageSize = $page_size;
  $this->extraParams = $extra_params;
}