/** * Retrieves list of accounts for given WebMail Pro user. * * @param int $iUserId User identifier. * * @return array | false */ public function getAccountIdList($iUserId) { $aAccountsIds = false; if ($this->oConnection->Execute($this->oCommandCreator->getAccountIdListQuery($iUserId))) { $oRow = null; $aAccountsIds = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $aAccountsIds[] = (int) $oRow->id_acct; } } $this->throwDbExceptionIfExist(); return $aAccountsIds; }