Exemplo n.º 1
0
 function query()
 {
     $this->data = $this->soap->queryData($this->query, false);
     $this->query = '';
     $this->error = $this->soap->getError();
     return $this->data;
 }
Exemplo n.º 2
0
 function _query($query, $indexes, &$result)
 {
     $data = $this->soap->queryData($query);
     if ($this->soap->getError()) {
         $this->error = $this->soap->getError();
         return false;
     }
     $data = simplexml_load_string($data);
     $index = 0;
     //  Merge results
     foreach ($data->children() as $row) {
         $result[$indexes[$index]] = $row;
         if ($this->cache) {
             // Put in cache
             $this->cache->PutCachedData($this->queries[$indexes[$index]], $row->asXML());
         }
         $index++;
     }
 }