|
UNA
|
Public Member Functions | |
| actionLoadGroupCustom () | |
| actionSelectMembers () | |
| actionSelectMemberships () | |
| actionUsersList () | |
| getGroupSettings ($iGroup) | |
| isGroupsCustom () | |
| getGroupsBy ($aParams) | |
| getGroupCustom ($aParams) | |
| isAllowedAddInContext ($sContext) | |
| 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 | getObjectInstance ($sObject) |
| static | getGroupChooser ($sObject, $iOwnerId=0, $aParams=array()) |
| static | initGroupChooser ($sObject, $iOwnerId=0, $aParams=array()) |
| static | initGroupChooserAPI ($sObject, $iOwnerId=0, $aParams=[]) |
| static | getIcon ($iVisibility) |
| static | getFieldName ($sObject, $sAction='') |
Protected Member Functions | |
| __construct ($aObject) | |
| getObjectInfo ($sAction, $iObjectId) | |
| getPrivacyGroupsForContentPublic ($iProfileIdOwner=0, $aCustomGroups=array()) | |
| getCheckMethod ($s) | |
| convertActionToField ($sAction) | |
| isDynamicGroupMember ($mixedGroupId, $iObjectOwnerId, $iViewerId, $iObjectId) | |
| getGroups ($iOwnerId=0, $aParams=[]) | |
| isSelectGroupCustomUsers ($aParams) | |
| isSelectGroupCustomMemberships ($aParams) | |
| _check ($iObjectId, $iViewerId, $aObject) | |
Protected Attributes | |
| $_oDb | |
| $_sObject | |
| $_aObject | |
| $_aGroupsSettings | |
| $_aGroupsExclude | |
| $_sFormGroupCustom | |
| $_sFormDisplayGcMembers | |
| $_sFormDisplayGcMemberships | |
Privacy settings for any content.
Integration of the content with privacy engine allows site member to organize the access to his content.
In addition to regular privacy groups (Public, Friends), spaces are supported. When some space (usually some another profile) is specified as privacy, then another profile visibility is used to check the privacy.
Related classes: BxDolPrivacyQuery - database queries.
Example of usage:
Check privacy when any user tries to view an item.
Memberships/ACL: Doesn't depend on user's membership.
Alerts: no alerts available
|
protected |
Constructor
| $aObject | array of grid options |
|
protected |
Check whether the viewer can make requested action.
| integer | $iObjectId | object ID the action to be performed with. |
| integer | $iViewerId | viewer ID. |
| BxDolPrivacy::addGroupCustom | ( | $aGroup, | |
| $aItems = [] ) |
Note. Is used when privacy group is processing after the main form submit.
| BxDolPrivacy::check | ( | $iObjectId, | |
| $iViewerId = 0 ) |
Check whether the viewer can make requested action.
| integer | $iObjectId | object ID the action to be performed with. |
| integer | $iViewerId | viewer ID. |
Reimplemented in BxBaseModGroupsPrivacyNotifications.
| BxDolPrivacy::editGroupCustom | ( | $aGroup, | |
| $aItems = [] ) |
Note. Is used when privacy group is processing after the main form submit.
| BxDolPrivacy::getContentByGroupAsCondition | ( | $mixedGroupId | ) |
Get necessary condition array to use privacy in search classes
| $mixedGroupId | group ID or array of group IDs |
| BxDolPrivacy::getContentByGroupAsSQLPart | ( | $mixedGroupId | ) |
Get necessary parts of SQL query to use privacy in other queries
| $mixedGroupId | group ID or array of group IDs |
Reimplemented in BxTimelinePrivacy.
| BxDolPrivacy::getContentPublicAndInContextAsSQLPart | ( | $iProfileIdOwner = 0, | |
| $aCustomGroups = [], | |||
| $aCustomContexts = [] ) |
Get necessary parts of SQL query to use privacy in other queries
| $iProfileIdOwner | owner profile ID |
| BxDolPrivacy::getContentPublicAsCondition | ( | $iProfileIdOwner = 0, | |
| $aCustomGroups = array() ) |
Get necessary condition array to use privacy in search classes
| $iProfileIdOwner | owner profile ID |
| BxDolPrivacy::getContentPublicAsSQLPart | ( | $iProfileIdOwner = 0, | |
| $aCustomGroups = array() ) |
Get necessary parts of SQL query to use privacy in other queries
| $iProfileIdOwner | owner profile ID |
|
static |
Get database field name for action.
| string | $sObject | privacy object name. |
| string | $sAction | action name. |
|
static |
Get Select element with available groups.
| string | $sObject | privacy object name. |
| integer | $iOwnerId | object's owner ID. |
| array | $aParams | an 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). |
Reimplemented in BxBaseModGroupsPrivacy, and BxBaseModGroupsPrivacyPost.
|
protected |
get privacy groups for getGroupChooser
|
static |
Get privacy object instance by object name
| $sObject | object name |
Implements iBxDolFactoryObject.
| BxDolPrivacy::isAllowedAddInContext | ( | $sContext | ) |
Checks if this privacy object allows to add content in specified context.
| type | $sContext | - context module name |
|
protected |
Check whethere viewer is a member of dynamic group.
| mixed | $mixedGroupId | dynamic group ID. |
| integer | $iObjectOwnerId | object owner ID. |
| integer | $iViewerId | viewer ID. |
Reimplemented in BxBaseModGroupsPrivacy, BxBaseModGroupsPrivacyPost, and BxMarketPrivacy.
|
protected |
Check whethere a custom group (based on memberships list) is allowed in current circumstances. NOTE. Can be overwritten if it's needed.
| type | $aParams | an array of parameters. |
Reimplemented in BxBaseModProfilePrivacyAction.
|
protected |
Check whethere a custom group (based on users list) is allowed in current circumstances. NOTE. Can be overwritten if it's needed.
| type | $aParams | an array of parameters. |
Reimplemented in BxBaseModProfilePrivacyAction.