db_Mysql::getAll PHP Method

getAll() private method

获得所有的查询数据
private getAll ( ) : array
return array
    private function getAll()
    {
        //返回数据集
        $result = array();
        if ($this->numRows > 0) {
            while ($row = mysql_fetch_assoc($this->queryID)) {
                $result[] = $row;
            }
            mysql_data_seek($this->queryID, 0);
        }
        return $result;
    }