UNA
|
Public Member Functions | |
getContentByGroupAsCondition ($mixedGroupId) | |
getContentPublicAsCondition ($iProfileIdOwner=0, $aCustomGroups=array()) | |
getContentByGroupAsSQLPart ($mixedGroupId) | |
getContentPublicAsSQLPart ($iProfileIdOwner=0, $aCustomGroups=array()) | |
getContentPublicAndInContextAsSQLPart ($iProfileIdOwner=0, $aCustomGroups=[], $aCustomContexts=[]) | |
check ($iObjectId, $iViewerId=0) | |
Static Public Member Functions | |
static | getObjectInstance ($sObject) |
static | getGroupChooser ($sObject, $iOwnerId=0, $aParams=array()) |
static | getFieldName ($sObject, $sAction='') |
Protected Member Functions | |
__construct ($aObject) | |
isDynamicGroupMember ($mixedGroupId, $iObjectOwnerId, $iViewerId, $iObjectId) | |
getGroups ($iOwnerId=0, $aParams=[]) | |
isSelectGroupCustomUsers ($aParams) | |
isSelectGroupCustomMemberships ($aParams) | |
_check ($iObjectId, $iViewerId, $aObject) | |
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. |
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 |
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). |
|
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. |
|
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. |
|
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. |