db_pdo::getAll PHP Метод

getAll() приватный Метод

获得所有的查询数据
private getAll ( ) : array
Результат array
    private function getAll()
    {
        //返回数据集
        $result = $this->PDOStatement->fetchAll(\PDO::FETCH_ASSOC);
        $this->numRows = count($result);
        return $result;
    }