UNA
Loading...
Searching...
No Matches
BxBaseModProfileModule Class Reference
Inheritance diagram for BxBaseModProfileModule:
BxBaseModGeneralModule iBxDolContentInfoService iBxDolProfileService BxDolModule BxDol BxBaseModGroupsModule BxPersonsModule BxCnlModule BxCoursesModule BxEventsModule BxGroupsModule BxJobsModule BxOrgsModule BxSpacesModule

Public Member Functions

 __construct (&$aModule)
 
 actionDeleteProfileImg ($iFileId, $iContentId, $sFieldPicture)
 
 actionProfileCalendarData ()
 
 actionEmbed ($iContentId, $sUnitTemplate='', $sAddCode='')
 
 serviceGetSafeServices ()
 
 serviceGetOptionsRedirectAfterAdd ()
 
 serviceGetOptionsActivation ()
 
 serviceGetThumb ($iContentId, $sTranscoder='')
 
 serviceGetCover ($iContentId, $sTranscoder='')
 
 serviceGetSearchResultUnit ($iContentId, $sUnitTemplate='')
 
 serviceGetSearchableFieldsExtended ($aInputsAdd=array())
 
 serviceEntityCalendar ($iContentId=0, $sTemplate='calendar.html')
 
 servicePrivateProfileMsg ()
 
 serviceGetContentInfoById ($iContentId)
 
 serviceGetContentInfoByProfileId ($iProfileId)
 
 serviceGetMenuAddonManageTools ()
 
 serviceGetMenuAddonManageToolsProfileStats ($iProfileId=0)
 
 serviceGetMenuAddonFavoritesProfileStats ()
 
 serviceGetSubmenuObject ()
 
 serviceGetMenuSetNameForMenuTrigger ($sMenuTriggerName)
 
 serviceGetSnippetMenuVars ($iProfileId, $bPublic=null, $aParams=[])
 
 serviceGetPageObjectForPageTrigger ($sPageTriggerName)
 
 serviceProfilesSearch ($sTerm, $iLimit)
 
 serviceProfileUnitSafe ($iContentId, $aParams=array())
 
 serviceProfileUnit ($iContentId, $aParams=[])
 
 serviceProfileUnitApi ($iContentId, $aParams=[])
 
 serviceHasImage ($iContentId)
 
 serviceProfilePicture ($iContentId)
 
 serviceProfileAvatar ($iContentId)
 
 serviceProfileAvatarBig ($iContentId)
 
 serviceProfileCover ($iContentId)
 
 serviceProfileUnitCover ($iContentId)
 
 serviceProfileEditUrl ($iContentId)
 
 serviceProfileThumb ($iContentId)
 
 serviceProfileIcon ($iContentId)
 
 serviceProfileName ($iContentId)
 
 serviceProfileSettings ($iContentId)
 
 serviceProfileSettingsSet ($iContentId, $oValue)
 
 serviceProfileCreateUrl ($bAbsolute=true)
 
 serviceProfileUrl ($iContentId)
 
 serviceGetSpaceTitle ()
 
 serviceGetParticipatingProfiles ($iProfileId, $aConnectionObjects=false)
 
 servicePrepareFields ($aFieldsProfile)
 
 serviceFormsHelper ()
 
 serviceEntityCreate ($sDisplay=false)
 
 serviceActAsProfile ()
 
 serviceBrowseRecommended ($sUnitView=false, $bEmptyMessage=false, $bAjaxPaginate=true)
 
 serviceBrowseRecentProfiles ($bDisplayEmptyMsg=false, $bAjaxPaginate=true)
 
 serviceBrowseActiveProfiles ($sUnitView=false, $bEmptyMessage=false, $bAjaxPaginate=false)
 
 serviceBrowseFamiliarProfiles ($sConnection='', $sUnitView=false, $bEmptyMessage=false, $bAjaxPaginate=false)
 
 serviceBrowseTopProfiles ($bDisplayEmptyMsg=false, $bAjaxPaginate=false)
 
 serviceBrowseOnlineProfiles ($bDisplayEmptyMsg=false, $bAjaxPaginate=false)
 
 serviceBrowseConnections ($iProfileId, $sObjectConnections='sys_profiles_friends', $sConnectionsType='content', $iMutual=false, $iDesignBox=BX_DB_PADDING_DEF, $iProfileId2=0)
 
 serviceBrowseRelationsQuick ($iProfileId, $sObjectConnections='sys_profiles_friends', $sConnectionsType='content', $iMutual=false, $iProfileId2=0)
 
 serviceBrowseConnectionsQuick ($iProfileId, $sObjectConnections='sys_profiles_friends', $sConnectionsType='content', $iMutual=false, $iProfileId2=0)
 
 serviceBrowseConnectionsByType ($aParamsCnn, $aParamsBrs=array())
 
 serviceBrowseByAcl ($mixedLevelId, $iDesignBox=BX_DB_PADDING_DEF)
 
 serviceEntityEditCover ($iContentId=0)
 
 serviceEntityCover ($iContentId=0, $aParams=[])
 
 serviceEntityCommentsByProfile ($iProfileId)
 
 serviceEntitySocialSharing ($mixedContent=false, $aParams=array())
 
 serviceProfileMembership ($iContentId=0)
 
 serviceProfileFriends ($iContentId=0)
 
 serviceProfileFriendsMutual ($iContentId=0)
 
 serviceProfileSubscriptions ($iContentId=0, $aParams=array())
 
 serviceProfileSubscribedMe ($iContentId=0)
 
 serviceProfileRelations ($iContentId=0, $aParams=array())
 
 serviceProfileRelatedMe ($iContentId=0)
 
 serviceIsEnableProfileActivationLetter ()
 
 serviceIsEnableRelations ()
 
 serviceDeleteEntityService ($iContentId, $bDeleteWithContent=false)
 
 serviceGetNotificationsData ()
 
 serviceGetNotificationsPost ($aEvent)
 
 serviceGetNotificationsVote ($aEvent)
 
 serviceGetNotificationsTimelinePostCommon ($aEvent)
 
 serviceGetTimelineData ()
 
 serviceGetTimelineProfilePicture ($aEvent, $aBrowseParams=[])
 
 serviceGetTimelineProfilePictureAllowedView ($aEvent)
 
 serviceGetTimelineProfileCover ($aEvent, $aBrowseParams=[])
 
 serviceGetTimelineProfileCoverAllowedView ($aEvent)
 
 serviceGetMenuItemTitleByConnection ($sConnection, $sAction, $iContentProfileId, $iInitiatorProfileId=0)
 
 serviceCheckAllowedProfileView ($iContentId)
 
 serviceCheckAllowedProfileContact ($iContentId)
 
 serviceCheckAllowedPostInProfile ($iContentId, $sPostModule='')
 
 serviceCheckAllowedModuleActionInProfile ($iContentId, $sPostModule, $sActionName)
 
 serviceCheckSpacePrivacy ($iContentId)
 
 serviceCheckAllowedViewForProfile ($aDataEntry, $isPerformAction=false, $iProfileId=false)
 
 serviceCheckAllowedPostForProfile ($aDataEntry, $isPerformAction=false, $iProfileId=false)
 
 serviceCheckAllowedContactForProfile ($aDataEntry, $isPerformAction=false, $iProfileId=false)
 
 serviceSetViewProfileCover ($oPage, $aProfileInfo)
 
 serviceGetMembers ($sMode='active', $iStart=0, $iPerPage=10)
 
 checkAllowedAdd ($isPerformAction=false)
 
 checkAllowedView ($aDataEntry, $isPerformAction=false)
 
 checkAllowedViewProfileImage ($aDataEntry, $isPerformAction=false)
 
 checkAllowedViewCoverImage ($aDataEntry, $isPerformAction=false)
 
 checkAllowedPost ($aDataEntry, $isPerformAction=false)
 
 checkAllowedContact ($aDataEntry, $isPerformAction=false)
 
 checkAllowedEdit ($aDataEntry, $isPerformAction=false)
 
 checkAllowedChangeCover ($aDataEntry, $isPerformAction=false)
 
 checkAllowedDelete (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedViewMoreMenu (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedCompose (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedFriendAdd (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedFriendRemove (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedRelationAdd (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedRelationRemove (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedRelationsView (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedSubscribeAdd (&$aDataEntry, $isPerformAction=false)
 
 _modProfileCheckAllowedSubscribeAdd (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedSubscribeRemove (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedSubscriptionsView (&$aDataEntry, $isPerformAction=false)
 
 checkMyself ($iContentId)
 
 isAllowDeleteOrDisable ($iActorProfileId, $iTargetProfileId)
 
 getProfileObject ($iContentId)
 
 onUpdateImage ($iContentId, $sFiledName, $sFiledValue, $iProfileId=0)
 
 alertAfterAdd ($aContentInfo)
 
 alertAfterEdit ($aContentInfo)
 
 getProfileByCurrentUrl ()
 
 getEntryImageData ($aContentInfo, $sField='FIELD_PICTURE', $aTranscoders=array())
 
 getProfileName ($aContentInfo)
 
 getMenuItemTitleByConnection ($sConnection, $sAction, $iContentProfileId, $iInitiatorProfileId=0)
 
 decodeDataAPI ($aData, $aParams=[])
 
- Public Member Functions inherited from BxBaseModGeneralModule
 isEntryActive ($aContentInfo)
 
 isEntryAuthor ($aContentInfo, $iProfileId=0)
 
 actionUpdateImage ($sFiledName, $iContentId, $sValue)
 
 actionUpdateImagePosition ($iContentId, $sFiledName, $sH, $sV)
 
 actionApprove ()
 
 serviceSetStatus ($iId, $sValue, $sStatus='')
 
 actionRss ()
 
 actionGetCreatePostForm ()
 
 actionGetNotes ()
 
 actionNested ()
 
 subactionDelete ()
 
 actionAjaxGetProfiles ()
 
 serviceGetProfiles ($sParams)
 
 actionGetBrowsingFilters ()
 
 actionApplyBrowsingFilters ()
 
 serviceIsBadgesAvaliable ()
 
 serviceModuleIcon ()
 
 serviceGetAuthor ($iContentId)
 
 serviceGetPrivacyView ($iContentId)
 
 serviceGetDateAdded ($iContentId)
 
 serviceGetDateChanged ($iContentId)
 
 serviceGetLink ($iContentId)
 
 serviceGetTitle ($iContentId)
 
 serviceGetText ($iContentId)
 
 serviceGetLocation ($iContentId)
 
 serviceGetEmbed ($iContentId)
 
 serviceGetInfo ($iContentId, $bSearchableFieldsOnly=true)
 
 serviceGetInfoApi ($iContentId, $bExtendedUnits=false)
 
 serviceGetAll ($aParams=array())
 
 serviceGetAllByAuthor ($iProfileId)
 
 serviceGetSortableFieldsExtended ($aInputsAdd=array())
 
 serviceGetSearchResultExtended ($aParams, $iStart=0, $iPerPage=0, $bFilterMode=false)
 
 serviceGetSearchableFields ($aInputsAdd=array())
 
 serviceUpdateImage ($sFiledName, $iContentId, $sValue)
 
 serviceUpdateImagePosition ($iContentId, $sFiledName, $sH, $sV)
 
 serviceManageTools ($sType='common')
 
 serviceBrowse ($aParams=array())
 
 serviceBrowseWithCondition ($aParams=array())
 
 serviceBrowseFeatured ($sUnitView=false, $bEmptyMessage=false, $bAjaxPaginate=true)
 
 serviceBrowseFavorite ($iProfileId=0, $aParams=array())
 
 serviceBrowseFavoriteLists ($iProfileId=0, $aParams=array())
 
 serviceBrowseCategory ($sUnitView=false, $bEmptyMessage=true, $bAjaxPaginate=true, $aParams=[])
 
 serviceFavoritesListActions ()
 
 serviceFavoritesListInfo ($aParams=array())
 
 serviceBrowseContext ($iProfileId=0, $aParams=array())
 
 _serviceBrowseWithParam ($sParamName, $sParamGet, $sParamVal, $aParams=array())
 
 serviceEntityAdd ($iProfile, $aValues, $sDisplay=false)
 
 serviceRedirectAfterAdd ($aContentInfo)
 
 serviceGetObjectForm ($sType, $aParams=array())
 
 serviceGetCreatePostForm ($aParams=[])
 
 serviceEntityEdit ($iContentId=0, $sDisplay=false)
 
 serviceEntityDelete ($iContentId=0)
 
 serviceEntityTextBlock ($iContentId=0)
 
 serviceEntityInfo ($iContentId=0, $sDisplay=false)
 
 serviceEntityInfoFull ($iContentId=0)
 
 serviceEntityInfoExtended ($iContentId=0)
 
 serviceEntityLocation ($iContentId=0)
 
 serviceEntityComments ($iContentId=0)
 
 serviceEntityAttachments ($iContentId=0)
 
 serviceDeleteEntity ($iContentId, $sFuncDelete='deleteData')
 
 serviceMyEntriesActions ($iProfileId=0)
 
 serviceEntityAllActions ($mixedContent=false, $aParams=array())
 
 serviceEntityActions ($iContentId=0)
 
 serviceEntityReports ($iContentId=0)
 
 serviceReportsCountByStatus ($iStatus)
 
 serviceEntityContext ($iContentId=0)
 
 serviceGetLablesTree ()
 
 serviceGetLablesBreadcrumbs ()
 
 serviceBrowseByLabel ()
 
 serviceBrowseByCategories ($sUnitView, $bEmptyMessage, $bAjaxPaginate, $sMode, $iPerPage)
 
 serviceGetNotificationsPostPendingApproval ($aEvent)
 
 serviceGetNotificationsPostApproved ($aEvent)
 
 serviceGetNotificationsPostPublishFailed ($aEvent)
 
 serviceGetNotificationsPostPublishSucceeded ($aEvent)
 
 serviceGetNotificationsComment ($aEvent)
 
 serviceGetNotificationsReply ($aEvent)
 
 serviceGetNotificationsReaction ($aEvent)
 
 serviceGetNotificationsScoreUp ($aEvent)
 
 serviceGetNotificationsScoreDown ($aEvent)
 
 serviceGetTimelinePost ($aEvent, $aBrowseParams=array())
 
 serviceGetTimelinePostAllowedView ($aEvent)
 
 serviceCheckAllowed ($sAction, $isPerformAction=false)
 
 serviceCheckAllowedWithContent ($sAction, $iContentId, $isPerformAction=false)
 
 serviceCheckAllowedWithContentForProfile ($sAction, $iContentId, $iProfileId, $isPerformAction=false)
 
 serviceCheckAllowedCommentsView ($iContentId, $sObjectComments)
 
 serviceCheckAllowedCommentsPost ($iContentId, $sObjectComments)
 
 serviceGetContentOwnerProfileId ($iContentId)
 
 serviceGetBadges ($iContentId, $bIsSingle=false, $bIsCompact=false)
 
 serviceCategoriesMultiList ($bDisplayEmptyCats=true)
 
 checkAllowedSetThumb ($iContentId=0)
 
 checkAllowedBrowse ()
 
 checkAllowedViewForProfile ($aDataEntry, $iProfileId, $isPerformAction=false)
 
 checkAllowedApprove ($aDataEntry, $isPerformAction=false)
 
 checkAllowedSetMembership (&$aDataEntry, $isPerformAction=false)
 
 checkAllowedEditAnyEntry ($isPerformAction=false)
 
 checkAllowedDeleteAnyEntry ($isPerformAction=false)
 
 checkAllowedEditAnyEntryForProfile ($isPerformAction=false, $iProfileId=false)
 
 checkAllowedDeleteAnyEntryForProfile ($isPerformAction=false, $iProfileId=false)
 
 checkAllowedCommentsView ($aContentInfo, $isPerformAction=false)
 
 checkAllowedCommentsPost ($aContentInfo, $isPerformAction=false)
 
 _serviceBrowse ($sMode, $aParams=false, $iDesignBox=BX_DB_PADDING_DEF, $bDisplayEmptyMsg=false, $bAjaxPaginate=true, $sClassSearchResult='SearchResult')
 
 onPublished ($iContentId)
 
 onFailed ($iContentId)
 
 onApprove ($mixedContent)
 
 alertAfterApprove ($aContentInfo)
 
 processMetasAdd ($iContentId)
 
 processMetasEdit ($iContentId, $oForm)
 
 getEntryAllActions ($mixedContent=false, $aParams=[])
 
 getProfileId ()
 
 getProfileInfo ($iUserId=false)
 
 getObjectUser ($iUserId=false)
 
 getObjectFavorite ($sSystem='', $iId=0)
 
 getUserId ()
 
 getUserIp ()
 
 getUserInfo ($iUserId=0)
 
 getUserInfoWithBadges ($iUserId=0)
 
 isMenuItemVisible ($sObject, &$aItem, &$aContentInfo)
 
 _isModerator ($isPerformAction=false)
 
 _isModeratorForProfile ($isPerformAction=false, $iProfileId=false)
 
 _isAdministrator ($isPerformAction=false)
 
 _isAdministratorForProfile ($isPerformAction=false, $iProfileId=false)
 
 _prepareAuditParams ($aContentInfo, $bIsSaveData=true, $aOverrideAuditParams=array())
 
 _getFavoriteListUrl ($iListId, $iProfileId)
 
 getDataAPI ($aData, $aParams=[])
 
- Public Member Functions inherited from BxDolModule
 __construct ($aModule)
 
 isEnabled ()
 
 getName ()
 
 isLogged ()
 
 getUserPassword ()
 
 serviceIsSafeService ($s)
 
 serviceIsPublicService ($s)
 
 serviceGetPublicServices ()
 
- Public Member Functions inherited from iBxDolContentInfoService
 serviceGetAuthor ($iContentId)
 
 serviceGetDateAdded ($iContentId)
 
 serviceGetDateChanged ($iContentId)
 
 serviceGetLink ($iContentId)
 
 serviceGetTitle ($iContentId)
 
 serviceGetText ($iContentId)
 
 serviceGetThumb ($iContentId)
 
 serviceGetInfo ($iContentId, $bSearchableFieldsOnly=true)
 
 serviceGetAll ($aParams=array())
 
 serviceGetSearchResultExtended ($aParams, $iStart=0, $iPerPage=0, $bFilterMode=false)
 
- Public Member Functions inherited from iBxDolProfileService
 serviceProfileUnit ($iContentId)
 

Protected Member Functions

 _servicePrepareFields ($aFieldsProfile, $aFieldsDefault, $aMap)
 
 _serviceCheckAllowedContactForProfile ($aDataEntry, $isPerformAction=false, $iProfileId=false)
 
 _alertParams ($aContentInfo)
 
 _getMenuItemTitleProfilesFriends ($sAction, $iContentProfileId, $iInitiatorProfileId, &$oConnection)
 
 _getMenuItemTitleProfilesSubscriptions ($sAction, $iContentProfileId, $iInitiatorProfileId, &$oConnection)
 
 _checkAllowedConnect (&$aDataEntry, $isPerformAction, $mixedConnection, $isMutual, $isInvertResult, $isSwap=false)
 
 _buildRssParams ($sMode, $aArgs)
 
 _serviceGetTimelineProfileImage ($aEvent, $aBrowseParams, $aBuildParams)
 
 _serviceGetTimelineProfileImageAllowedView ($aEvent)
 
 _getContentForTimelineProfileImage ($aEvent, $aBrowseParams, $aBuildParams, $aContentInfo, $aFileInfo)
 
 _entityComments ($sObject, $iId=0)
 
 _getContent ($iContentId=0, $sFuncGetContent='getContentInfoById')
 
- Protected Member Functions inherited from BxBaseModGeneralModule
 _prepareBrowsingFiltersParamsGet ($mParams=false)
 
 _serviceGetNotificationsScore ($sType, $aEvent)
 
 _serviceCheckAllowedViewForProfile ($aDataEntry, $isPerformAction, $iProfileId)
 
 _serviceBrowseQuick ($aProfiles, $iStart=0, $iLimit=4, $aAdditionalParams=array())
 
 _serviceEntityForm ($sFormMethod, $iContentId=0, $sDisplay=false, $sCheckFunction=false, $bErrorMsg=true)
 
 _serviceTemplateFunc ($sFunc, $iContentId, $sFuncGetContent='getContentInfoById')
 
 _serviceTemplateFuncEx ($sFunc, $iContentId, $aParams=array())
 
 _getApproveForm ($iContentId, $aContentInfo)
 
 _sendApproveMessage ($iContentId, $aContentInfo, &$oForm)
 
 _processModerationNotifications ($aContentInfo)
 
 _rss ($aArgs, $sClass='SearchResult')
 
 _getContentForTimelinePost ($aEvent, $aContentInfo, $aBrowseParams=array())
 
 _getImagesForTimelinePost ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getImagesForTimelinePostAttach ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getVideosForTimelinePost ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getVideosForTimelinePostAttach ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getFilesForTimelinePost ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getFilesForTimelinePostAttach ($aEvent, $aContentInfo, $sUrl, $aBrowseParams=array())
 
 _getFields ($iContentId)
 
 _getFieldValue ($sField, $iContentId)
 
 _getFieldValueThumb ($sField, $iContentId, $sTranscoder='')
 
 _prepareResponse ($aResponse, $bAsJson=false, $aAdditional=array())
 

Protected Attributes

 $_iAccountId
 
- Protected Attributes inherited from BxBaseModGeneralModule
 $_bIsApi
 
 $_iProfileId
 
 $_aSearchableNamesExcept
 
 $_aFormParams
 
 $_aBrowsingFiltersKeys
 

Additional Inherited Members

- Static Public Member Functions inherited from BxDolModule
static getInstance ($sName)
 
static getTitle ($sUri)
 
static getTitleKey ($sUri)
 
- Public Attributes inherited from BxDolModule
 $_aModule
 
 $_oDb
 
 $_oTemplate
 
 $_oConfig
 

Detailed Description

Base class for profile modules.

Constructor & Destructor Documentation

◆ __construct()

BxBaseModProfileModule::__construct ( & $aModule)

Reimplemented from BxBaseModGeneralModule.

Member Function Documentation

◆ _alertParams()

BxBaseModProfileModule::_alertParams ( $aContentInfo)
protected

Get array of params to be passed in Add/Edit Alert.

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ _entityComments()

BxBaseModProfileModule::_entityComments ( $sObject,
$iId = 0 )
protected

Reimplemented from BxBaseModGeneralModule.

◆ _getContent()

BxBaseModProfileModule::_getContent ( $iContentId = 0,
$sFuncGetContent = 'getContentInfoById' )
protected

Reimplemented from BxBaseModGeneralModule.

◆ _modProfileCheckAllowedSubscribeAdd()

BxBaseModProfileModule::_modProfileCheckAllowedSubscribeAdd ( & $aDataEntry,
$isPerformAction = false )

Note. Is mainly needed for internal usage. Access level is 'public' to allow outer calls from alerts.

◆ _servicePrepareFields()

BxBaseModProfileModule::_servicePrepareFields ( $aFieldsProfile,
$aFieldsDefault,
$aMap )
protected

Hooks:

'{module_name}', 'prepare_fields' - hook to override prepared profile fields

  • $unit_name - module name
  • $action - equals prepare_fields
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

◆ actionEmbed()

BxBaseModProfileModule::actionEmbed ( $iContentId,
$sUnitTemplate = '',
$sAddCode = '' )

Reimplemented from BxBaseModGeneralModule.

◆ alertAfterAdd()

BxBaseModProfileModule::alertAfterAdd ( $aContentInfo)

Hooks:

'{module_name}', 'added' - hook after profile was added

  • $unit_name - module name
  • $action - equals added
  • $object_id - profile content id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ alertAfterEdit()

BxBaseModProfileModule::alertAfterEdit ( $aContentInfo)

Hooks:

'{module_name}', 'edited' - hook after profile was changed

It's equivalent to '{module_name}', 'added' - hook after profile was added

HOOKS
'{module_name}', 'edited' - hook after profile was changed

Hooks:

'profile', 'edit' - hook after profile was changed

  • $unit_name - equals profile
  • $action - equals edit
  • $object_id - profile id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:
    • content - [int] profile content id
    • module - [string] module name
      HOOKS
      hook-profile-added

Reimplemented from BxBaseModGeneralModule.

◆ checkAllowedAdd()

BxBaseModProfileModule::checkAllowedAdd ( $isPerformAction = false)
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden. So make sure to make strict(===) checking.

Reimplemented from BxBaseModGeneralModule.

◆ checkAllowedChangeCover()

BxBaseModProfileModule::checkAllowedChangeCover ( $aDataEntry,
$isPerformAction = false )

Check if user can change cover image

Reimplemented in BxBaseModGroupsModule.

◆ checkAllowedCompose()

BxBaseModProfileModule::checkAllowedCompose ( & $aDataEntry,
$isPerformAction = false )

Compose differs from Contact. For example, a user should NOT be able to start conversation (compose) with himself but he should be able to view conversation page where he is one of the participants.

Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

Reimplemented in BxBaseModGroupsModule, BxCnlModule, and BxOrgsModule.

◆ checkAllowedContact()

BxBaseModProfileModule::checkAllowedContact ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

Reimplemented in BxCnlModule, and BxOrgsModule.

◆ checkAllowedDelete()

BxBaseModProfileModule::checkAllowedDelete ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ checkAllowedEdit()

BxBaseModProfileModule::checkAllowedEdit ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ checkAllowedFriendAdd()

BxBaseModProfileModule::checkAllowedFriendAdd ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedFriendRemove()

BxBaseModProfileModule::checkAllowedFriendRemove ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedPost()

BxBaseModProfileModule::checkAllowedPost ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedRelationAdd()

BxBaseModProfileModule::checkAllowedRelationAdd ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedRelationRemove()

BxBaseModProfileModule::checkAllowedRelationRemove ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedSubscribeAdd()

BxBaseModProfileModule::checkAllowedSubscribeAdd ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

Hooks:

'system', 'check_allowed_subscribe_add' - hook to override the result of checking whether currently logged in user can subscribe (follow) the context or not

It's equivalent to 'system', 'check_allowed_view' - hook to override the result of checking whether 'view' action is allowed or not to specified profile

HOOKS
'system', 'check_allowed_subscribe_add' - hook to override the result of checking whether currently logged in user can subscribe (follow) the context or not

Reimplemented in BxBaseModGroupsModule.

◆ checkAllowedSubscribeRemove()

BxBaseModProfileModule::checkAllowedSubscribeRemove ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedView()

BxBaseModProfileModule::checkAllowedView ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden. So make sure to make strict(===) checking.

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ checkAllowedViewCoverImage()

BxBaseModProfileModule::checkAllowedViewCoverImage ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedViewMoreMenu()

BxBaseModProfileModule::checkAllowedViewMoreMenu ( & $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ checkAllowedViewProfileImage()

BxBaseModProfileModule::checkAllowedViewProfileImage ( $aDataEntry,
$isPerformAction = false )
Returns
CHECK_ACTION_RESULT_ALLOWED if access is granted or error message if access is forbidden.

◆ decodeDataAPI()

BxBaseModProfileModule::decodeDataAPI ( $aData,
$aParams = [] )

Reimplemented from BxBaseModGeneralModule.

◆ getEntryImageData()

BxBaseModProfileModule::getEntryImageData ( $aContentInfo,
$sField = 'FIELD_PICTURE',
$aTranscoders = array() )

Reimplemented from BxBaseModGeneralModule.

◆ onUpdateImage()

BxBaseModProfileModule::onUpdateImage ( $iContentId,
$sFiledName,
$sFiledValue,
$iProfileId = 0 )

Hooks:

'{module_name}', 'profile_picture_changed' - hook after profile picture was changed

Hooks:

'{module_name}', 'profile_cover_changed' - hook after profile cover was changed

It's equivalent to '{module_name}', 'profile_picture_changed' - hook after profile picture was changed

HOOKS
'{module_name}', 'profile_cover_changed' - hook after profile cover was changed

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ serviceActAsProfile()

BxBaseModProfileModule::serviceActAsProfile ( )

Implements iBxDolProfileService.

Reimplemented in BxBaseModGroupsModule, and BxOrgsModule.

◆ serviceBrowseActiveProfiles()

BxBaseModProfileModule::serviceBrowseActiveProfiles ( $sUnitView = false,
$bEmptyMessage = false,
$bAjaxPaginate = false )

◆ serviceBrowseByAcl()

BxBaseModProfileModule::serviceBrowseByAcl ( $mixedLevelId,
$iDesignBox = BX_DB_PADDING_DEF )

◆ serviceBrowseFamiliarProfiles()

BxBaseModProfileModule::serviceBrowseFamiliarProfiles ( $sConnection = '',
$sUnitView = false,
$bEmptyMessage = false,
$bAjaxPaginate = false )

◆ serviceBrowseOnlineProfiles()

BxBaseModProfileModule::serviceBrowseOnlineProfiles ( $bDisplayEmptyMsg = false,
$bAjaxPaginate = false )

◆ serviceBrowseRecentProfiles()

BxBaseModProfileModule::serviceBrowseRecentProfiles ( $bDisplayEmptyMsg = false,
$bAjaxPaginate = true )

◆ serviceBrowseRecommended()

BxBaseModProfileModule::serviceBrowseRecommended ( $sUnitView = false,
$bEmptyMessage = false,
$bAjaxPaginate = true )

◆ serviceBrowseTopProfiles()

BxBaseModProfileModule::serviceBrowseTopProfiles ( $bDisplayEmptyMsg = false,
$bAjaxPaginate = false )

◆ serviceCheckAllowedContactForProfile()

BxBaseModProfileModule::serviceCheckAllowedContactForProfile ( $aDataEntry,
$isPerformAction = false,
$iProfileId = false )

Check if profile can be contacted.

NOTE. This service should be used if it's needed to pass some specific values in $isPerformAction and $iProfileId parameters, otherwise it's recommended to use BxBaseModProfileModule\serviceCheckAllowedProfileContact service method or BxDolProfile\checkAllowedProfileContact method.

Parameters
type$aDataEntry- entry which the action will be performed for
type$isPerformAction- perform or just check the action
type$iProfileId- performer's profile ID
Returns
integer - one of CHECK_ACTION_RESULT_XXX constants.

Hooks:

'system', 'check_allowed_contact' - hook to override the result of checking whether 'contact' action is allowed or not to specified profile

It's equivalent to 'system', 'check_allowed_view' - hook to override the result of checking whether 'view' action is allowed or not to specified profile

HOOKS
'system', 'check_allowed_contact' - hook to override the result of checking whether 'contact' action is allowed or not to specified profile

◆ serviceCheckAllowedModuleActionInProfile()

BxBaseModProfileModule::serviceCheckAllowedModuleActionInProfile ( $iContentId,
$sPostModule,
$sActionName )

◆ serviceCheckAllowedPostForProfile()

BxBaseModProfileModule::serviceCheckAllowedPostForProfile ( $aDataEntry,
$isPerformAction = false,
$iProfileId = false )

Check if posting (comment, post in Timeline) is available.

NOTE. This service should be used if it's needed to pass some specific values in $isPerformAction and $iProfileId parameters, otherwise it's recommended to use BxBaseModProfileModule\serviceCheckAllowedPostInProfile service method or BxDolProfile\checkAllowedPostInProfile method.

Parameters
type$aDataEntry- entry which the action will be performed for
type$isPerformAction- perform or just check the action
type$iProfileId- performer's profile ID
Returns
integer - one of CHECK_ACTION_RESULT_XXX constants.

Hooks:

'system', 'check_allowed_post' - hook to override the result of checking whether 'post' action is allowed or not to specified profile

It's equivalent to 'system', 'check_allowed_view' - hook to override the result of checking whether 'view' action is allowed or not to specified profile

HOOKS
'system', 'check_allowed_post' - hook to override the result of checking whether 'post' action is allowed or not to specified profile

◆ serviceCheckAllowedPostInProfile()

BxBaseModProfileModule::serviceCheckAllowedPostInProfile ( $iContentId,
$sPostModule = '' )

◆ serviceCheckAllowedProfileContact()

BxBaseModProfileModule::serviceCheckAllowedProfileContact ( $iContentId)

◆ serviceCheckAllowedProfileView()

BxBaseModProfileModule::serviceCheckAllowedProfileView ( $iContentId)

◆ serviceCheckAllowedViewForProfile()

BxBaseModProfileModule::serviceCheckAllowedViewForProfile ( $aDataEntry,
$isPerformAction = false,
$iProfileId = false )

Check if the profile can be viewed.

NOTE. This service should be used if it's needed to pass some specific values in $isPerformAction and $iProfileId parameters, otherwise it's recommended to use BxBaseModProfileModule\serviceCheckAllowedProfileView service method or BxDolProfile\checkAllowedProfileView method.

Parameters
type$aDataEntry- entry which the action will be performed for
type$isPerformAction- perform or just check the action
type$iProfileId- performer's profile ID
Returns
integer - one of CHECK_ACTION_RESULT_XXX constants.

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ serviceCheckSpacePrivacy()

BxBaseModProfileModule::serviceCheckSpacePrivacy ( $iContentId)

◆ serviceDeleteEntityService()

BxBaseModProfileModule::serviceDeleteEntityService ( $iContentId,
$bDeleteWithContent = false )

For internal usage only.

◆ serviceEntityCalendar()

BxBaseModProfileModule::serviceEntityCalendar ( $iContentId = 0,
$sTemplate = 'calendar.html' )

◆ serviceEntityCommentsByProfile()

BxBaseModProfileModule::serviceEntityCommentsByProfile ( $iProfileId)

Entry comments

◆ serviceEntityCover()

BxBaseModProfileModule::serviceEntityCover ( $iContentId = 0,
$aParams = [] )

entity_cover

◆ serviceEntityCreate()

BxBaseModProfileModule::serviceEntityCreate ( $sDisplay = false)

◆ serviceEntitySocialSharing()

BxBaseModProfileModule::serviceEntitySocialSharing ( $mixedContent = false,
$aParams = array() )

Entry social sharing block

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule.

◆ serviceFormsHelper()

BxBaseModProfileModule::serviceFormsHelper ( )

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetMembers()

BxBaseModProfileModule::serviceGetMembers ( $sMode = 'active',
$iStart = 0,
$iPerPage = 10 )

Returns list of members by mode with limited number of records for React Jot

Parameters
string$sMode
int$iStart
int$iPerPage
Returns
mixed

◆ serviceGetMenuAddonManageTools()

BxBaseModProfileModule::serviceGetMenuAddonManageTools ( )

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetMenuAddonManageToolsProfileStats()

BxBaseModProfileModule::serviceGetMenuAddonManageToolsProfileStats ( $iProfileId = 0)

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetNotificationsData()

BxBaseModProfileModule::serviceGetNotificationsData ( )

Data for Notifications module

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule, BxCnlModule, and BxEventsModule.

◆ serviceGetNotificationsPost()

BxBaseModProfileModule::serviceGetNotificationsPost ( $aEvent)

Entry post for Notifications module

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetNotificationsTimelinePostCommon()

BxBaseModProfileModule::serviceGetNotificationsTimelinePostCommon ( $aEvent)

Notification about new member requst in the group

◆ serviceGetNotificationsVote()

BxBaseModProfileModule::serviceGetNotificationsVote ( $aEvent)

Entry post vote for Notifications module

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetParticipatingProfiles()

BxBaseModProfileModule::serviceGetParticipatingProfiles ( $iProfileId,
$aConnectionObjects = false )
See also
iBxDolProfileService\serviceGetParticipatingProfiles

Hooks:

'system', 'get_participating_profiles' - hook to override context participants list

Implements iBxDolProfileService.

Reimplemented in BxBaseModGroupsModule, and BxOrgsModule.

◆ serviceGetSafeServices()

BxBaseModProfileModule::serviceGetSafeServices ( )

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetSearchableFieldsExtended()

BxBaseModProfileModule::serviceGetSearchableFieldsExtended ( $aInputsAdd = array())

Reimplemented from BxBaseModGeneralModule.

◆ serviceGetSearchResultUnit()

BxBaseModProfileModule::serviceGetSearchResultUnit ( $iContentId,
$sUnitTemplate = '' )

◆ serviceGetSpaceTitle()

BxBaseModProfileModule::serviceGetSpaceTitle ( )

◆ serviceGetTimelineData()

BxBaseModProfileModule::serviceGetTimelineData ( )

Data for Timeline module

Reimplemented from BxBaseModGeneralModule.

Reimplemented in BxBaseModGroupsModule, BxCnlModule, and BxOrgsModule.

◆ serviceGetTimelineProfilePicture()

BxBaseModProfileModule::serviceGetTimelineProfilePicture ( $aEvent,
$aBrowseParams = [] )

Entry post for Timeline module

◆ serviceIsEnableProfileActivationLetter()

BxBaseModProfileModule::serviceIsEnableProfileActivationLetter ( )

check enabled profile activation letter

◆ servicePrepareFields()

BxBaseModProfileModule::servicePrepareFields ( $aFieldsProfile)

Prepare fields from some universal set of fields to fields in particular profile module. By default only 'name' and 'description' fields are supported. After fields convertion it can be used in

See also
BxBaseModGeneralModule\serviceEntityAdd
Parameters
$aFieldsProfilefields in soem universal format.
Returns
array which is ready to use for particular module

Hooks:

'{module_name}', 'prepare_fields' - hook to override prepared profile fields

  • $unit_name - module name
  • $action - equals prepare_fields
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

Implements iBxDolProfileService.

Reimplemented in BxBaseModGroupsModule, BxOrgsModule, and BxPersonsModule.

◆ serviceProfileAvatar()

BxBaseModProfileModule::serviceProfileAvatar ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfileCover()

BxBaseModProfileModule::serviceProfileCover ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfileEditUrl()

BxBaseModProfileModule::serviceProfileEditUrl ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfileIcon()

BxBaseModProfileModule::serviceProfileIcon ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfileName()

BxBaseModProfileModule::serviceProfileName ( $iContentId)

Hooks:

'{module_name}', 'profile_name' - hook to override profile display name

  • $unit_name - module name
  • $action - equals profile_name
  • $object_id - profile id
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:

Implements iBxDolProfileService.

◆ serviceProfilePicture()

BxBaseModProfileModule::serviceProfilePicture ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfilesSearch()

BxBaseModProfileModule::serviceProfilesSearch ( $sTerm,
$iLimit )

Implements iBxDolProfileService.

◆ serviceProfileThumb()

BxBaseModProfileModule::serviceProfileThumb ( $iContentId)

Implements iBxDolProfileService.

◆ serviceProfileUnitSafe()

BxBaseModProfileModule::serviceProfileUnitSafe ( $iContentId,
$aParams = array() )

◆ serviceProfileUrl()

BxBaseModProfileModule::serviceProfileUrl ( $iContentId)

The documentation for this class was generated from the following file: