/** * @param Array $messageIndexSet * @param bool $indexAsUid * @return string */ function &SelectDownloadedMessagesIdSet($messageIndexSet, $indexAsUid) { $messagesIdSet = array(); if ($this->_dbConnection->Execute($this->_commandCreator->SelectDownloadedMessagesIdSet($messageIndexSet, $indexAsUid, $this->Account))) { while (false !== ($row = $this->_dbConnection->GetNextRecord())) { $messagesIdSet[] = $row->id_msg; } } return $messagesIdSet; }