phpDocumentor

PermissionService

Interface PermissionService

Table of Contents

checkAdminPermission()  : bool
Checks the permission of an admin for a access group item, based on the provided admin ID, action (read, write or delete), group item type and descriptor.
setAccessRolePermissionsForAccessGroup()  : void
Set role permission for a group based on its type and descriptor.

Methods

checkAdminPermission()

Checks the permission of an admin for a access group item, based on the provided admin ID, action (read, write or delete), group item type and descriptor.

public checkAdminPermission(int $adminId, string $action, string $groupItemType, string $groupItemDescriptor) : bool
Parameters
$adminId : int
$action : string
$groupItemType : string
$groupItemDescriptor : string
Return values
bool

setAccessRolePermissionsForAccessGroup()

Set role permission for a group based on its type and descriptor.

public setAccessRolePermissionsForAccessGroup(int $accessRoleId, string $accessGroupItemType, string $accessGroupItemDescriptor, bool $readPermission, bool $writingPermission, bool $deletingPermission) : void
Parameters
$accessRoleId : int
$accessGroupItemType : string
$accessGroupItemDescriptor : string
$readPermission : bool
$writingPermission : bool
$deletingPermission : bool
Tags
throws
AccessGroupDoesNotExistException
throws
AccessRoleDoesNotExistException
throws
StorageOfAccessRolesFailedException
Return values
void

Search results