UNA
|
Public Member Functions | |
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=[]) | |
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 | 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:
sys_privacy_actions
database table.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::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. |
profile
check_privacy
object_id
- [int] object idviewer_id
- [int] profile_id for viewerobject
- [array] object privacyobject_privacy
- [array] arry with object privacyresult
- [bool] by ref, on success return true otherwise false, can be overridden in hook processing
Reimplemented in BxBaseModGroupsPrivacyNotifications.
BxDolPrivacy::getContentByGroupAsCondition | ( | $mixedGroupId | ) |
Get necessary condition array to use privacy in search classes
$mixedGroupId | group ID or array of group IDs |
profile
privacy_condition
group_id
- [int] group ID or array of group IDsfield
- [string] field nameobject
- [array] array with object privacyprivacy_object
- [array] object privacyresult
- [bool] by ref, on success return true otherwise false, can be overridden in hook processing
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.
|
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 BxBaseModProfilePrivacy, BxBaseModProfilePrivacyContact, and BxBaseModProfilePrivacyPost.
|
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 BxBaseModProfilePrivacy, BxBaseModProfilePrivacyContact, and BxBaseModProfilePrivacyPost.