You are here

class GoogleMiniResult in Google Search Appliance 5

Same name and namespace in other branches
  1. 6.2 GoogleMini.php \GoogleMiniResult

Hierarchy

Expanded class hierarchy of GoogleMiniResult

File

./GoogleMini.php, line 375

View source
class GoogleMiniResult {
  var $metaData;
  function __construct($result) {
    $this->result = $result;
  }
  function __get($key) {
    return $this->result->{$key};
  }
  function getMetaData($key) {
    if (!$this->metaData) {
      $this
        ->buildMetaData();
    }
    return $this->metaData[$key];
  }
  function buildMetaData() {
    foreach ($this->result->MT as $metaTag) {
      $name = $metaTag['N'];
      $value = $metaTag['V'];
      $this->metaData[(string) $name] = (string) $value;
    }
  }

}

Members