UNA
Loading...
Searching...
No Matches
BxBaseModGroupsPrivacyNotifications Class Reference
Inheritance diagram for BxBaseModGroupsPrivacyNotifications:
BxBaseModGroupsPrivacy BxBaseModProfilePrivacy BxTemplPrivacy BxBasePrivacy BxDolPrivacy BxDolFactory iBxDolFactoryObject BxCnlPrivacyNotifications BxCoursesPrivacyNotifications BxEventsPrivacyNotifications BxGroupsPrivacyNotifications BxJobsPrivacyNotifications BxOrgsPrivacyNotifications BxSpacesPrivacyNotifications

Public Member Functions

 __construct ($aOptions, $oTemplate=false)
 
 check ($iObjectId, $iViewerId=0)
 
 checkGroupMember ($iGroupProfileId, $iViewerId)
 
- Public Member Functions inherited from BxBaseModGroupsPrivacy
 isDynamicGroupMember ($mixedGroupId, $iObjectOwnerId, $iViewerId, $iObjectId)
 
 isClosedGroupAccess ($iObjectOwnerId, $iViewerId, $iObjectId)
 
 isSecretGroupAccess ($iObjectOwnerId, $iViewerId, $iObjectId)
 
- Public Member Functions inherited from BxBaseModProfilePrivacy
 isPartiallyVisible ($mixedPrivacy)
 
 getPartiallyVisiblePrivacyGroups ()
 
- Public Member Functions inherited from BxBasePrivacy
 getJsObjectName ()
 
 getJsScript ($sCodeAdd='', $bDynamicMode=false)
 
 addCssJs ($bDynamicMode=false)
 
- Public Member Functions inherited from BxDolPrivacy
 actionLoadGroupCustom ()
 
 actionSelectMembers ()
 
 actionSelectMemberships ()
 
 actionUsersList ()
 
 getGroupSettings ($iGroup)
 
 isGroupsCustom ()
 
 getGroupsBy ($aParams)
 
 getGroupCustom ($aParams)
 
 updateGroupCustom ($aParamsSet, $aParamsWhere)
 
 deleteGroupCustom ($aParamsWhere)
 
 associateGroupCustomWithContent ($iProfileId, $iContentId, $iGroupId)
 
 reassociateGroupCustomWithContent ($iProfileId, $iContentId, $iGroupId)
 
 deleteGroupCustomByContentId ($iContentId)
 
 deleteGroupCustomByProfileId ($iProfileId)
 
 addDynamicGroups ($aValues, $iOwnerId, $aParams)
 
 addSpaces ($aValues, $iOwnerId, $aParams)
 
 getContentByGroupAsCondition ($mixedGroupId)
 
 getContentPublicAsCondition ($iProfileIdOwner=0, $aCustomGroups=array())
 
 getContentByGroupAsSQLPart ($mixedGroupId)
 
 getContentPublicAsSQLPart ($iProfileIdOwner=0, $aCustomGroups=array())
 
 getContentPublicAndInContextAsSQLPart ($iProfileIdOwner=0, $aCustomGroups=[], $aCustomContexts=[])
 
 checkSpace ($aObject, $iViewerId)
 
 checkMeOnly ($iOwnerId, $iViewerId)
 
 checkPublic ($iOwnerId, $iViewerId)
 
 checkMembers ($iOwnerId, $iViewerId)
 
 checkFriends ($iOwnerId, $iViewerId)
 
 checkFriendsSelectedByObject ($aObject, $iViewerId)
 
 checkRelations ($iOwnerId, $iViewerId)
 
 checkRelationsSelectedByObject ($aObject, $iViewerId)
 
 checkMembershipsSelectedByObject ($aObject, $iViewerId)
 
 checkCustomByObject ($aObject, $iViewerId)
 
 setTableFieldAuthor ($sValue)
 
 isAllowedRelations ($iUserId)
 
 isAllowedMemberships ($iUserId)
 

Additional Inherited Members

- Static Public Member Functions inherited from BxBaseModGroupsPrivacy
static getGroupChooser ($sObject, $iOwnerId=0, $aParams=array())
 
- Static Public Member Functions inherited from BxDolPrivacy
static getObjectInstance ($sObject)
 
static initGroupChooser ($sObject, $iOwnerId=0, $aParams=array())
 
static getIcon ($iVisibility)
 
static getFieldName ($sObject, $sAction='')
 
- Protected Member Functions inherited from BxBaseModGroupsPrivacy
 getObjectInfo ($sAction, $iObjectId)
 
- Protected Member Functions inherited from BxBaseModProfilePrivacy
 isSelectGroupCustomUsers ($aParams)
 
 isSelectGroupCustomMemberships ($aParams)
 
 _isSelectGroupCustomItems ($aParams)
 
- Protected Member Functions inherited from BxBasePrivacy
 getSelectGroup ($aValues=array(), $aParams=array())
 
 getSelectMemberships ($aValues=array(), $aParams=array())
 
 getLoadGroupCustom ($iProfileId, $iContentId, $iGroupId, $aHtmlIds)
 
- Protected Member Functions inherited from BxDolPrivacy
 __construct ($aObject)
 
 getPrivacyGroupsForContentPublic ($iProfileIdOwner=0, $aCustomGroups=array())
 
 getCheckMethod ($s)
 
 convertActionToField ($sAction)
 
 getGroups ($iOwnerId=0, $aParams=[])
 
 _check ($iObjectId, $iViewerId, $aObject)
 
- Protected Attributes inherited from BxBaseModProfilePrivacy
 $MODULE
 
 $_oModule
 
 $_aPrivacyParticallyVisible
 
- Protected Attributes inherited from BxBasePrivacy
 $_oTemplate
 
 $_sJsObjClass
 
 $_sJsObjName
 
 $_aHtmlIds
 
- Protected Attributes inherited from BxDolPrivacy
 $_oDb
 
 $_sObject
 
 $_aObject
 
 $_aGroupsSettings
 
 $_aGroupsExclude
 
 $_sFormGroupCustom
 
 $_sFormDisplayGcMembers
 
 $_sFormDisplayGcMemberships
 

Constructor & Destructor Documentation

◆ __construct()

BxBaseModGroupsPrivacyNotifications::__construct ( $aOptions,
$oTemplate = false )

Reimplemented from BxBaseModGroupsPrivacy.

Member Function Documentation

◆ check()

BxBaseModGroupsPrivacyNotifications::check ( $iObjectId,
$iViewerId = 0 )

Check whether the viewer can make requested action.

Parameters
integer$iObjectIdobject ID the action to be performed with.
integer$iViewerIdviewer ID.
Returns
boolean result of operation.

Hooks:

'system', 'check_privacy' - check privacy for object

  • $unit_name - equals profile
  • $action - equals check_privacy
  • $object_id - not used
  • $sender_id - not used
  • $extra_params - array of additional params with the following array keys:
    • object_id - [int] object id
    • viewer_id - [int] profile_id for viewer
    • object - [array] object privacy
    • object_privacy - [array] arry with object privacy
    • result - [bool] by ref, on success return true otherwise false, can be overridden in hook processing
      HOOKS
      'system', 'check_privacy' - check privacy for object

Reimplemented from BxDolPrivacy.


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