UNA
|
Public Member Functions | |
__clone () | |
id () | |
isConfirmed ($iAccountId=false) | |
getCurrentConfirmationStatusValue ($iAccountId=false) | |
isConfirmedEmail ($iAccountId=false) | |
isConfirmedPhone ($iAccountId=false) | |
isLocked ($iAccountId=false) | |
updateEmailConfirmed ($isConfirmed, $isAutoSendConfrmationEmail=true, $iAccountId=false) | |
updatePhoneConfirmed ($isConfirmed, $iAccountId=false) | |
updatePassword ($sPassword, $iAccountId=false) | |
updatePhone ($sPhone, $iAccountId=false) | |
updateProfileContextAuto ($iProfileIdFilterOut=false, $iAccountId=false) | |
updateProfileContext ($iSwitchToProfileId, $iAccountId=false) | |
sendConfirmationEmail ($iAccountId=false) | |
sendResetPasswordEmail ($iAccountId=false) | |
getInfo ($iAccountId=false) | |
getDisplayName ($iAccountId=false) | |
getUrl ($iAccountId=false) | |
getUnit ($iAccountId=false, $aParams=array()) | |
getPicture ($iAccountId=false) | |
getAvatarBig ($iAccountId=false) | |
getAvatar ($iAccountId=false) | |
getThumb ($iAccountId=false) | |
getIcon ($iAccountId=false) | |
getEmail ($iAccountId=false) | |
getLanguageId ($iAccountId=false) | |
isOnline ($iAccountId=false) | |
isProfilesLimitReached () | |
getProfilesNumber ($isFilterNonSwitchableProfiles=true) | |
getProfilesIds ($isFilterNonSwitchableProfiles=true, $isFilterSystemProfiles=true) | |
getProfiles ($isFilterNonSwitchableProfiles=true, $isFilterSystemProfiles=true) | |
delete ($bDeleteWithContent=false) | |
addInformerPermanentMessages ($oInformer) | |
getUnsubscribeLink ($iEmailType, $iAccountId=false) | |
getEmailHash ($iAccountId=false) | |
getPasswordExpiredDate ($iPasswordExpiredForMembership, $iAccountId=false) | |
getPasswordExpiredDateByAccount ($iAccountId=false) | |
isNeedChangePassword ($iAccountId=false) | |
doAudit ($iAccountId, $sAction, $aData=array()) | |
Static Public Member Functions | |
static | getInstance ($mixedAccountId=false, $bClearCache=false) |
static | getInstanceStudioOperator () |
static | isNeedConfirmEmail () |
static | isNeedConfirmPhone () |
static | getID ($s) |
static | isAllowedCreate ($iProfileId, $isPerformAction=false) |
static | isAllowedCreateMultiple ($iProfileId, $isPerformAction=false) |
static | isAllowedEdit ($iProfileId, $aContentInfo, $isPerformAction=false) |
static | isAllowedDelete ($iProfileId, $aContentInfo, $isPerformAction=false) |
static | pruning () |
Static Public Member Functions inherited from iBxDolSingleton | |
static | getInstance () |
Protected Member Functions | |
__construct ($iAccountId) | |
Protected Attributes | |
$_iAccountID | |
$_aInfo | |
$_oQuery | |
|
protected |
Constructor
BxDolAccount::__clone | ( | ) |
Prevent cloning the instance
BxDolAccount::addInformerPermanentMessages | ( | $oInformer | ) |
Add permament messages.
BxDolAccount::delete | ( | $bDeleteWithContent = false | ) |
Delete profile.
$bDeleteWithContent | - delete associated profiles with all its contents |
account
before_delete
delete_with_content
- [bool] if account will delete with content = true, otherwise = falsestop_deletion
- [bool] by ref, if it set to true account deletion will stopped, can be overridden in hook processing
account
delete
delete_with_content
- [bool] if account will delete with content = true, otherwise = false
BxDolAccount::getAvatar | ( | $iAccountId = false | ) |
Get avatar url
BxDolAccount::getAvatarBig | ( | $iAccountId = false | ) |
Get big (2x) avatar url
BxDolAccount::getDisplayName | ( | $iAccountId = false | ) |
Get account display name
account
account_name
info
- [array] contains account info from $oAccount->getInfo()display_name
- [string] by ref, account display name, can be overridden in hook processing
BxDolAccount::getEmail | ( | $iAccountId = false | ) |
Get account email
BxDolAccount::getIcon | ( | $iAccountId = false | ) |
Get icon picture url
|
static |
Validate account.
$s | - account identifier (id or email) |
BxDolAccount::getInfo | ( | $iAccountId = false | ) |
Get account info
|
static |
Get singleton instance of the class
|
static |
Get studio operator account singleton instance on the class
BxDolAccount::getLanguageId | ( | $iAccountId = false | ) |
Get language ID
BxDolAccount::getPicture | ( | $iAccountId = false | ) |
Get picture url
BxDolAccount::getProfiles | ( | $isFilterNonSwitchableProfiles = true, | |
$isFilterSystemProfiles = true ) |
Get all profiles associated with the account
BxDolAccount::getProfilesIds | ( | $isFilterNonSwitchableProfiles = true, | |
$isFilterSystemProfiles = true ) |
Get all profile ids associated with the account
BxDolAccount::getProfilesNumber | ( | $isFilterNonSwitchableProfiles = true | ) |
Get number of profiles associated with the account
BxDolAccount::getThumb | ( | $iAccountId = false | ) |
Get thumb picture url
BxDolAccount::getUnit | ( | $iAccountId = false, | |
$aParams = array() ) |
Get account url
BxDolAccount::getUnsubscribeLink | ( | $iEmailType, | |
$iAccountId = false ) |
Get unsubscribe link for the specified mesage type
BxDolAccount::getUrl | ( | $iAccountId = false | ) |
Get account url
BxDolAccount::id | ( | ) |
Get account id
|
static |
|
static |
profile
allow_create_another_profile
override_result
- [bool] by ref, if allow create another profile = true, otherwise = false, can be overridden in hook processing
|
static |
|
static |
BxDolAccount::isConfirmed | ( | $iAccountId = false | ) |
Check if account is confirmed, it is checked by email confirmation
account
is_confirmed
type
- [string] confirmation type can be none/phone/email/email_and_phone/email_or_phoneoverride_result
- [bool] by ref, if account confirmed = true, otherwise false, can be overridden in hook processing
BxDolAccount::isConfirmedEmail | ( | $iAccountId = false | ) |
account
is_confirmed_email
override_result
- [bool] by ref, if email confirmed = true, otherwise false, can be overridden in hook processing BxDolAccount::isConfirmedPhone | ( | $iAccountId = false | ) |
account
is_confirmed_phone
override_result
- [bool] by ref, if phone confirmed = true, otherwise false, can be overridden in hook processing
BxDolAccount::isNeedChangePassword | ( | $iAccountId = false | ) |
account
is_need_to_change_password
override_result
- [bool] by ref, if Need Redirect To Change Password = true, otherwise = false, can be overridden in hook processing
BxDolAccount::isOnline | ( | $iAccountId = false | ) |
Is account online
BxDolAccount::isProfilesLimitReached | ( | ) |
Check if profiles limit reached
account
get_limit_profiles_number
account_id
- [int] account idnumber
- [int] by ref, account limit on the number of profiles, can be overridden in hook processing
BxDolAccount::sendConfirmationEmail | ( | $iAccountId = false | ) |
Send "confirmation" email
BxDolAccount::updateEmailConfirmed | ( | $isConfirmed, | |
$isAutoSendConfrmationEmail = true, | |||
$iAccountId = false ) |
Set account email to confirmed or unconfirmed
int | $isConfirmed | - false: mark email as unconfirmed, true: as confirmed |
int | $iAccountId | - optional account id |
account
BxDolAccount::updatePassword | ( | $sPassword, | |
$iAccountId = false ) |
Change account password
string | $sPassword | - new password |
int | $iAccountId | - optional account id |
account
action
- [string] action's name, can be reset_password
BxDolAccount::updatePhone | ( | $sPhone, | |
$iAccountId = false ) |
Set account phone
string | $sPhone | - phone number |
int | $iAccountId | - optional account id |
account
set_phone
BxDolAccount::updatePhoneConfirmed | ( | $isConfirmed, | |
$iAccountId = false ) |
Set account phone to confirmed or unconfirmed
int | $isConfirmed | - false: mark phone as unconfirmed, true: as confirmed |
int | $iAccountId | - optional account id |
BxDolAccount::updateProfileContext | ( | $iSwitchToProfileId, | |
$iAccountId = false ) |
account
before_switch_context
profile_id_current
- [int] current profile_idoverride_result
- [int] by ref, profile_id to switch to, can be overridden in hook processing
account
switch_context
profile_id_old
- [int] old profile_id
BxDolAccount::updateProfileContextAuto | ( | $iProfileIdFilterOut = false, | |
$iAccountId = false ) |
Switch context automatically to the first available profile
$iProfileIdFilterOut | profile ID to exclude from the list of possible profiles |
$iAccountId | account ID to use istead of current account |