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) | |
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) | |
suspend ($iAction, $iProfileId=0, $bSendEmailNotification=true) | |
checkSwitchToProfile ($oTemplate=null, $iViewerAccountId=false, $iViewerProfileId=false) | |
addInformerPermanentMessages ($oInformer) | |
Public Member Functions inherited from iBxDolProfile | |
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 | getID ($s) |
static | add ($iAction, $iAccountId, $iContentId, $sStatus, $sType='system') |
Protected Member Functions | |
__construct ($iProfileId) | |
|
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 |
BxDolProfile::addInformerPermanentMessages | ( | $oInformer | ) |
Add permament messages.
BxDolProfile::approve | ( | $iAction, | |
$iProfileId = 0 , |
|||
$bSendEmailNotification = true |
|||
) |
Change profile status from 'Pending' to the next level - 'Active'
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
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 |
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
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'