Pop\Db\Adapter\Sqlite::numRows PHP Метод

numRows() публичный Метод

Return the number of rows in the result.
public numRows ( ) : integer
Результат integer
    public function numRows()
    {
        if (null === $this->lastSql) {
            return $this->connection->changes();
        } else {
            if (!($this->lastResult = $this->connection->query($this->lastSql))) {
                $this->showError();
            } else {
                $num = 0;
                while (($row = $this->lastResult->fetcharray(SQLITE3_ASSOC)) != false) {
                    $num++;
                }
                return $num;
            }
        }
    }