Methods |
public
|
__construct(AbstractModule $oModule = null)
|
#
|
public
|
getAccountById(int $iAccountId): boolean|MailAccount
|
#
|
public
|
getAccountByEmail(string $sEmail, int $iUserId): boolean|MailAccount
Obtains an account with the specified email and for the specified user.
Obtains an account with the specified email and for the specified user.
Parameters
$sEmail |
Email of the account.
|
$iUserId |
Identifier of the user which owns the account.
|
Throws
|
#
|
public
|
getAccountUsedToAuthorize(string $sEmail): MailAccount|boolean
Obtains an account with specified email. The account must be allowed to authenticate its user.
Obtains an account with specified email. The account must be allowed to authenticate its user.
Parameters
$sEmail |
Email of the account.
|
|
#
|
public
|
useToAuthorizeAccountExists(string $sEmail, int $iExceptId = 0): array
|
#
|
public
|
getUserAccounts($iUserId): Collection|false
|
#
|
public
|
getAccounts(Array $aFilters): Array|false
Obtains mail accounts with specified parameters.
Obtains mail accounts with specified parameters.
|
#
|
public
|
getUserAccountsCount(int $iUserId): Array|false
|
#
|
public
|
canCreate($iUserId): bool
|
#
|
public
|
isExists(Account $oAccount): bool
|
#
|
public
|
createAccount(MailAccount &$oAccount): bool
|
#
|
public
|
updateAccount(MailAccount &$oAccount): bool
|
#
|
public
|
deleteAccount(MailAccount $oAccount): bool
|
#
|