Ejemplo n.º 1
0
 /**
  * request the queries and returns an array of the results
  *
  * @return array
  */
 public function execute()
 {
     if (empty($this->query) && empty($this->ghostQuery)) {
         return array();
     }
     $this->allQuery = $this->ghostQuery + $this->query;
     $queryString = $this->getQueryString();
     $response = $this->client->request($queryString);
     $jsonResponse = json_decode($response->getBody(true));
     return $this->parseResult($jsonResponse, count($this->query) > 1);
 }
Ejemplo n.º 2
0
 /**
  * @return string
  */
 public function getLogTemplate()
 {
     return $this->client->getLogTemplate();
 }