You are here

public function GoogleMini::setKeywords in Google Search Appliance 6.2

Same name and namespace in other branches
  1. 5 GoogleMini.php \GoogleMini::setKeywords()

Set the keywords used for keyword search

Parameters

string $keys:

File

./GoogleMini.php, line 161

Class

GoogleMini

Code

public function setKeywords($keys) {
  if ($this->_queryParts['q']) {
    $this->_queryParts['q'] .= "%20" . urlencode($keys);
  }
  else {
    $this
      ->setQueryPart('q', urlencode($keys));
  }
}