Db::getHashList PHP Method

getHashList() public method

获取以hashkey作为键值的hash数组
public getHashList ( $hashKey = '', $hashValue = '*' ) : array
return array
    public function getHashList($hashKey = '', $hashValue = '*')
    {
        if (!$this->queryID) {
            throw_exception($this->error());
            return false;
        }
        //返回数据集
        $result = array();
        if ($this->numRows > 0) {
            while ($row = mysql_fetch_assoc($this->queryID)) {
                if (empty($hashKey)) {
                    $reuslt[] = $hashValue == '*' ? $row : @$row[$hashValue];
                } else {
                    $result[$row[$hashKey]] = $hashValue == '*' ? $row : @$row[$hashValue];
                }
            }
            mysql_data_seek($this->queryID, 0);
        }
        return $result;
    }