function &GetArray($nRows = -1) { if ($nRows == -1 && $this->_currentRow <= 0 && !$this->_skiprow1) { return $this->_array; } else { $arr =& ADORecordSet::GetArray($nRows); return $arr; } }
/** * Utility function to turn a result set into an array of records * * @param ADORecordSet an ADODB RecordSet object. * @return mixed an array of objects, or false if the RecordSet was empty. * @throws SQLException */ function recordset_to_array(ADORecordSet $rs) { if ($rs && $rs->RecordCount() > 0) { $array = $rs->GetArray(); foreach ($array as &$a) { $a = (object) $a; } return $array; } else { return false; } }