/** * Retrieves list of information about email accounts for specific user. * * @param int $iUserId User identifier. * * @return array | false array(int IdAccount => array(bool isDefaultAccount, string email, string friendlyName, string signature, int isSignatureHtml, int isSignatureAdded)) */ public function getUserAccounts($iUserId) { $aResult = false; if ($this->oConnection->Execute($this->oCommandCreator->getUserAccountsQuery($iUserId))) { $oRow = null; $aResult = array(); while (false !== ($oRow = $this->oConnection->GetNextRecord())) { $aResult[$oRow->id_acct] = array((bool) $oRow->def_acct, $oRow->email, trim($oRow->friendly_nm), trim($oRow->signature), (int) $oRow->signature_type, (int) $oRow->signature_opt, (bool) $oRow->is_password_specified, (bool) $oRow->allow_mail); } } $this->throwDbExceptionIfExist(); return $aResult; }