You are here

function GoogleMiniResultIterator::getSynonyms in Google Search Appliance 6.2

Returns an array of synonyms.

File

./GoogleMini.php, line 401

Class

GoogleMiniResultIterator

Code

function getSynonyms() {
  $output = array();
  if ($this->Synonyms) {
    foreach ($this->Synonyms
      ->children() as $child) {
      $output[] = (string) $child['q'];
    }
  }
  return $output;
}