Interface that all content permission handlers must implement.

package XenForo_Permissions

 Methods

Builds the content permissions for a user collection, for the permission type the implementing class is designed to handle.

rebuildContentPermissions(\XenForo_Model_Permission $permissionModel, array $userGroupIds, integer $userId, array $permissionsGrouped, array $globalPerms) : array

Parameters

$permissionModel

\XenForo_Model_Permission

Permission model that called this.

$userGroupIds

array

List of user groups for the collection

$userId

integer

User ID for the collection, if there are custom permissions

$permissionsGrouped

array

List of all valid permissions, grouped

$globalPerms

array

The global permissions that apply to this combination

Returns

array