Exakat\Analyzer\Analyzer::execQuery PHP Method

execQuery() public method

public execQuery ( )
    public function execQuery()
    {
        if (empty($this->queries)) {
            return true;
        }
        // @todo add a test here ?
        foreach ($this->queries as $id => $query) {
            $r = $this->query($query, $this->queriesArguments[$id]);
            ++$this->queryCount;
            if (isset($r[0]->processed->{1})) {
                $this->processedCount += $r[0]->processed->{1};
                $this->rowCount += isset($r[0]->total->{1}) ? $r[0]->total->{1} : 0;
            }
        }
        // reset for the next
        $this->queries = array();
        $this->queriesArguments = array();
        // @todo multiple results ?
        // @todo store result in the object until reading.
        return $this->rowCount;
    }
Analyzer