Class Rbac

Summary

Fully Qualified Name: Laminas\Permissions\Rbac\Rbac

Description

Methods

Name Description Defined By
addRole() Add a child. Rbac
getCreateMissingRoles() Rbac
getRole() Get a registered role by name Rbac
getRoles() Return all the roles Rbac
hasRole() Is a role registered? Rbac
isGranted() Determines if access is granted by checking the role and child roles for permission. Rbac
setCreateMissingRoles() Rbac

Method Details

addRole()

Add a child.

Parameter Name Type Description
$role string|\RoleInterface
$parents null|array|\RoleInterface

Returns:

getCreateMissingRoles()

Returns: void

getRole()

Get a registered role by name

Parameter Name Type Description
$roleName

Returns:

getRoles()

Return all the roles

Returns: \RoleInterface[]

hasRole()

Is a role registered?

Parameter Name Type Description
$role \RoleInterface|string

Returns:

isGranted()

Determines if access is granted by checking the role and child roles for permission.

Parameter Name Type Description
$role \RoleInterface|string
$assertion null|\AssertionInterface|callable
$permission

Returns:

setCreateMissingRoles()

Parameter Name Type Description
$createMissingRoles

Returns: void

Top