UNA
|
Public Member Functions | |
__clone () | |
id () | |
getAccountId ($iProfileId=false) | |
getAccountObject ($iProfileId=false) | |
getContentId () | |
isActive ($iProfileId=false) | |
isOnline ($iProfileId=false) | |
isActAsProfile ($iProfileId=false) | |
getStatus ($iProfileId=false) | |
getModule ($iProfileId=false) | |
getInfo ($iProfileId=0) | |
getDisplayName ($iProfileId=0) | |
getSettings ($iProfileId=0) | |
getUrl ($iProfileId=0) | |
getUnit ($iProfileId=0, $aParams=array()) | |
getUnitAPI ($iProfileId=0, $aParams=array()) | |
getBadges ($iProfileId=0) | |
hasImage ($iProfileId=0) | |
getPicture ($iProfileId=0) | |
getAvatar ($iProfileId=0) | |
getAvatarBig ($iProfileId=0) | |
getCover ($iProfileId=0) | |
getUnitCover ($iProfileId=0) | |
getThumb ($iProfileId=0) | |
getIcon ($iProfileId=0) | |
getIconModule ($iProfileId=0) | |
getEditUrl ($iProfileId=0) | |
checkAllowedProfileView ($iProfileId=0) | |
checkAllowedProfileContact ($iProfileId=0) | |
checkAllowedPostInProfile ($iProfileId=0, $sPostModule='') | |
delete ($ID=false, $bDeleteWithContent=false, $bForceDelete=false) | |
activate ($iAction, $iProfileId=0, $bSendEmailNotification=true) | |
approve ($iAction, $iProfileId=0, $bSendEmailNotification=true) | |
disapprove ($iAction, $iProfileId=0, $bSendEmailNotification=true) | |
move ($iAccountId, $iProfileId=0) | |
doAudit ($sAction, $aData=array()) | |
suspend ($iAction, $iProfileId=0, $bSendEmailNotification=true) | |
checkSwitchToProfile ($oTemplate=null, $iViewerAccountId=false, $iViewerProfileId=false) | |
addInformerPermanentMessages ($oInformer) | |
Public Member Functions inherited from iBxDolProfile | |
getDisplayName () | |
getUrl () | |
getUnit () | |
hasImage () | |
getPicture () | |
getAvatar () | |
getCover () | |
getThumb () | |
getIcon () | |
getIconModule () | |
getEditUrl () | |
isActive () | |
isOnline () | |
getStatus () | |
getModule () | |
checkAllowedProfileView () | |
checkAllowedProfileContact () | |
checkAllowedPostInProfile () | |
Static Public Member Functions | |
static | getInstanceAccountProfile ($iAccountId=false, $bClearCache=false) |
static | getInstanceByContentTypeAccount ($iContent, $sType, $iAccountId=false) |
static | getInstanceByContentAndType ($iContent, $sType, $bClearCache=false) |
static | getInstanceByAccount ($iAccountId=false, $bClearCache=false) |
static | getInstanceMagic ($mixedProfileId=false, $bClearCache=false) |
static | getInstance ($mixedProfileId=false, $bClearCache=false) |
static | getData ($mixedProfileId=false, $aParams=[]) |
static | getDataForPage ($mixedProfileId=false, $aParams=[]) |
static | getID ($s) |
static | add ($iAction, $iAccountId, $iContentId, $sStatus, $sType='system') |
static | getSwitchToProfileRedirectUrl ($iProfileId) |
Protected Member Functions | |
__construct ($iProfileId) | |
changeStatus ($sStatus, $sAlertActionName, $iAction, $iProfileId=0, $bSendEmailNotification=true) | |
Protected Attributes | |
$_iProfileID | |
$_aProfile | |
$_oQuery | |
|
protected |
Constructor
BxDolProfile::__clone | ( | ) |
Prevent cloning the instance
BxDolProfile::activate | ( | $iAction, | |
$iProfileId = 0, | |||
$bSendEmailNotification = true ) |
Change profile status to 'Active'
|
static |
Insert account and content id association. Also if currect profile id is not defined - it updates current profile id in account.
$iAccountId | account id |
$iContentId | content id |
$sStatus | profile status |
$sType | profile content type |
profile
add
module
- [string] action idcontent
- [int] content_id in moduleaccount
- [int] account_idstatus
- [string] statusaction
- [int] action idprofile_id
- [int] by ref, iprofile_id, can be overridden in hook processing
BxDolProfile::addInformerPermanentMessages | ( | $oInformer | ) |
Add permament messages.
BxDolProfile::approve | ( | $iAction, | |
$iProfileId = 0, | |||
$bSendEmailNotification = true ) |
Change profile status from 'Pending' to the next level - 'Active'
|
protected |
profile
approve
action
- [int] action idstatus
- [string] by ref, status, can be overridden in hook processingsend_email_notification
- [bool] by ref, if need to send notification about changed status = true, otherwise false, can be overridden in hook processing
BxDolProfile::checkAllowedPostInProfile | ( | $iProfileId = 0, | |
$sPostModule = '' ) |
BxDolProfile::checkAllowedProfileContact | ( | $iProfileId = 0 | ) |
BxDolProfile::checkAllowedProfileView | ( | $iProfileId = 0 | ) |
BxDolProfile::checkSwitchToProfile | ( | $oTemplate = null, | |
$iViewerAccountId = false, | |||
$iViewerProfileId = false ) |
Display informer message if it is possible to switch to this profile
account
check_switch_context
switch_to_profile
- [int] profile_id for switched profileviewer_account
- [int] profile_id for viewer profileoverride_result
- [bool] by ref, if allow to switch to profile = true, otherwise false, can be overridden in hook processing
BxDolProfile::delete | ( | $ID = false, | |
$bDeleteWithContent = false, | |||
$bForceDelete = false ) |
Delete profile.
$ID | - optional profile id to delete |
$bDeleteWithContent | - delete profile with all its contents |
$bForceDelete | - force deletetion is case of account profile deletion |
profile
before_delete
delete_with_content
- [bool] also delete content for profile or notstop_deletion
- [bool] by ref, if true then stop profile deletion, can be overridden in hook processingtype
- [string] module name
profile
delete
delete_with_content
- [bool] also delete content for profile or nottype
- [string] module name
BxDolProfile::disapprove | ( | $iAction, | |
$iProfileId = 0, | |||
$bSendEmailNotification = true ) |
Change profile status to 'Pending'
BxDolProfile::getAccountId | ( | $iProfileId = false | ) |
Get account id associated with the profile
BxDolProfile::getAccountObject | ( | $iProfileId = false | ) |
Get account object associated with the profile
BxDolProfile::getAvatar | ( | $iProfileId = 0 | ) |
Get avatar url
BxDolProfile::getAvatarBig | ( | $iProfileId = 0 | ) |
Get big (2x) avatar url
BxDolProfile::getBadges | ( | $iProfileId = 0 | ) |
Get badges
BxDolProfile::getContentId | ( | ) |
Get content id associated with the profile
BxDolProfile::getCover | ( | $iProfileId = 0 | ) |
Get cover url
BxDolProfile::getDisplayName | ( | $iProfileId = 0 | ) |
Get name to display in thumbnail
profile
profile_name
info
- [array] profile infodisplay_name
- [bool] by ref, display profile name, can be overridden in hook processing
BxDolProfile::getEditUrl | ( | $iProfileId = 0 | ) |
get profile edit page url
BxDolProfile::getIcon | ( | $iProfileId = 0 | ) |
Get icon url
BxDolProfile::getIconModule | ( | $iProfileId = 0 | ) |
Get module icon
|
static |
Validate profile id.
$s | - profile id |
BxDolProfile::getInfo | ( | $iProfileId = 0 | ) |
Get profile info
|
static |
Get singleton instance of Profile by profile id
|
static |
Get singleton instance of Account Profile by account id
|
static |
Get singleton instance of Profile by Account id (currently active profile is returned)
|
static |
Get singleton instance of Profile by content id and type
|
static |
Get singleton instance of Profile by account id, content id and type
|
static |
Get singleton instance of Profile by profile id, if profile isn't found it returns instance of BxDolProfileAnonymous or BxDolProfileUndefined
BxDolProfile::getModule | ( | $iProfileId = false | ) |
Get profile module name
BxDolProfile::getPicture | ( | $iProfileId = 0 | ) |
Get picture url
BxDolProfile::getStatus | ( | $iProfileId = false | ) |
Get profile status
BxDolProfile::getThumb | ( | $iProfileId = 0 | ) |
Get thumbnail url
BxDolProfile::getUnit | ( | $iProfileId = 0, | |
$aParams = array() ) |
Get profile unit
BxDolProfile::getUnitAPI | ( | $iProfileId = 0, | |
$aParams = array() ) |
Get profile unit for API calls
BxDolProfile::getUnitCover | ( | $iProfileId = 0 | ) |
Get unit cover url
BxDolProfile::getUrl | ( | $iProfileId = 0 | ) |
Get profile url
BxDolProfile::hasImage | ( | $iProfileId = 0 | ) |
Check whether a profile has real image uploaded by user.
BxDolProfile::id | ( | ) |
Get profile id
Implements iBxDolProfile.
BxDolProfile::isActAsProfile | ( | $iProfileId = false | ) |
Is profile can 'Act as Profile'
BxDolProfile::isActive | ( | $iProfileId = false | ) |
Check if profile status is active
BxDolProfile::isOnline | ( | $iProfileId = false | ) |
Is profile online
BxDolProfile::move | ( | $iAccountId, | |
$iProfileId = 0 ) |
Move profile to another account
BxDolProfile::suspend | ( | $iAction, | |
$iProfileId = 0, | |||
$bSendEmailNotification = true ) |
Change profile status to 'Suspended'