function query() { $this->data = $this->soap->queryData($this->query, false); $this->query = ''; $this->error = $this->soap->getError(); return $this->data; }
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++; } }