AdminAccessPermissionReaderInterface

Extends

Interface AdminAccessPermissionReaderInterface

category

System

package

AdminAccess

subpackage

Readers

Methods

Returns an AdminAccessPermission object by given AdminAccessRole and AdminAccessGroup objects.

get(\AdminAccessRoleInterface $accessRole, \AdminAccessGroupInterface $accessGroup) : \AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface

Arguments

$accessRole

\AdminAccessRoleInterface

Role object.

$accessGroup

\AdminAccessGroupInterface

Group object.

Response

\AdminAccessPermissionPresentationInterface|\AdminAccessPermissionPersistenceInterface

Permission object.

Returns an AdminAccessPermissionCollection by a given AdminAccessRole and AdminAccessGroupCollection object.

getByGroupCollection(\AdminAccessRoleInterface $accessRole, \AdminAccessGroupCollection $groupCollection) : \AdminAccessPermissionCollection

Arguments

$accessRole

\AdminAccessRoleInterface

User role to find permission for.

$groupCollection

\AdminAccessGroupCollection

Collection of all groups in system.

Response

\AdminAccessPermissionCollection

Permission collection.