Methods |
public
|
getAccountsManager()
|
#
|
public
|
init()
Initializes module.
|
#
|
public
|
onLogin(array $aArgs, mixed &$mResult)
Tries to log in with specified credentials via StandardAuth module. Writes to $mResult array with auth token data if…
Tries to log in with specified credentials via StandardAuth module. Writes to $mResult array with auth token data if logging in was successfull.
Parameters
$aArgs |
Credentials for logging in.
|
$mResult |
Is passed by reference.
|
|
#
|
public
|
onRegister(array $aArgs, type &$mResult)
Creates account with specified credentials.
Creates account with specified credentials.
Parameters
$aArgs |
New account credentials.
|
$mResult |
Is passed by reference.
|
|
#
|
public
|
onCheckAccountExists(array $aArgs)
Checks if module has account with specified login.
Checks if module has account with specified login.
Throws
|
#
|
public
|
onAfterDeleteUser(array $aArgs, mixed $mResult)
Deletes all basic accounts which are owned by the specified user.
Deletes all basic accounts which are owned by the specified user.
Parameters
|
#
|
public
|
onGetAccounts(array $aArgs, array &$aResult)
|
#
|
public
|
onGetAccountUsedToAuthorize($aArgs, &$mResult)
|
#
|
public
|
CreateAccount(int $iTenantId = 0, int $iUserId = 0, string $sLogin = '', string $sPassword = ''): bool|array
Creates account with credentials.
Denied for web API call
Creates account with credentials.
Denied for web API call
Parameters
$iTenantId |
Tenant identifier.
|
$iUserId |
User identifier.
|
$sLogin |
New account login.
|
$sPassword |
New account password.
|
Throws
|
#
|
public
|
SaveAccount(Account $oAccount): bool
Updates account.
|
#
|
public
|
CreateAuthenticatedUserAccount($TenantId, string $Login, string $Password): bool
Creates basic account for specified user.
Creates basic account for specified user.
Parameters
$Login |
New account login.
|
$Password |
New account password.
|
|
#
|
public
|
UpdateAccount(int $AccountId = 0, string $Password = ''): array|bool
Updates existing basic account.
Updates existing basic account.
Parameters
$AccountId |
Identifier of account to update.
|
$Password |
New value of account password.
|
Throws
|
#
|
public
|
DeleteAccount(int $AccountId = 0): bool
Deletes basic account.
Parameters
$AccountId |
Identifier of account to delete.
|
Throws
|
#
|
public
|
GetUserAccounts(int $UserId): array|bool
Obtains basic account for specified user.
Obtains basic account for specified user.
Parameters
|
#
|