public function GoogleMini::setLanguageFilter in Google Search Appliance 6.2
Same name and namespace in other branches
- 5 GoogleMini.php \GoogleMini::setLanguageFilter()
Sets the languages to be used in the search, if none specified, searches all languages
Parameters
array $languages:
File
- ./
GoogleMini.php, line 89
Class
Code
public function setLanguageFilter($languages = NULL) {
if ($languages) {
if (is_array($languages)) {
$this
->setQueryPart("lr", implode('|', $languages));
}
else {
$this
->setQueryPart("lr", $languages);
}
return TRUE;
}
return FALSE;
}