UNA
Loading...
Searching...
No Matches
BxBaseModGroupsPrivacy Class Reference
Inheritance diagram for BxBaseModGroupsPrivacy:
BxBaseModProfilePrivacy BxTemplPrivacy BxBasePrivacy BxDolPrivacy BxDolFactory iBxDolFactoryObject BxBaseModGroupsPrivacyNotifications BxCnlPrivacy BxCoursesPrivacy BxEventsPrivacy BxGroupsPrivacy BxJobsPrivacy BxOrgsPrivacy BxSpacesPrivacy

Public Member Functions

 __construct ($aOptions, $oTemplate=false)
 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)
 addGroupCustom ($aGroup, $aItems=[])
 editGroupCustom ($aGroup, $aItems=[])
 updateGroupCustom ($aParamsSet, $aParamsWhere)
 deleteGroupCustom ($aParamsWhere)
 associateGroupCustomWithContent ($iProfileId, $iContentId, $iGroupId)
 reassociateGroupCustomWithContent ($iProfileId, $iContentId, $iGroupId)
 deleteGroupCustomByContentId ($iContentId)
 deleteGroupCustomByProfileId ($iProfileId, $mixedContentId=false)
 deleteGroupCustomByProfileIdUnused ($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=[])
 check ($iObjectId, $iViewerId=0)
 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)

Static Public Member Functions

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 initGroupChooserAPI ($sObject, $iOwnerId=0, $aParams=[])
static getIcon ($iVisibility)
static getFieldName ($sObject, $sAction='')

Protected Member Functions

 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)

Additional Inherited Members

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()

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

Reimplemented from BxBaseModProfilePrivacy.

Member Function Documentation

◆ getGroupChooser()

BxBaseModGroupsPrivacy::getGroupChooser ( $sObject,
$iOwnerId = 0,
$aParams = array() )
static

Get Select element with available groups.

Parameters
string$sObjectprivacy object name.
integer$iOwnerIdobject's owner ID.
array$aParamsan array of custom selector's params (dynamic_groups - an array of arrays('key' => group_id, 'value' => group_title), title - the title to be used for generated field).
Returns
an array with Select element description.

Reimplemented from BxDolPrivacy.

◆ getObjectInfo()

BxBaseModGroupsPrivacy::getObjectInfo ( $sAction,
$iObjectId )
protected

Reimplemented from BxBaseModProfilePrivacy.

◆ isDynamicGroupMember()

BxBaseModGroupsPrivacy::isDynamicGroupMember ( $mixedGroupId,
$iObjectOwnerId,
$iViewerId,
$iObjectId )

Check whethere viewer is a member of dynamic group.

Parameters
mixed$mixedGroupIddynamic group ID.
integer$iObjectOwnerIdobject owner ID.
integer$iViewerIdviewer ID.
Returns
boolean result of operation.

Reimplemented from BxDolPrivacy.


The documentation for this class was generated from the following file:
  • modules/base/groups/classes/BxBaseModGroupsPrivacy.php