1501. Class

1501.1. Zend\Permissions\Rbac\Rbac

1501.1.1. Methods

1501.1.1.1. setCreateMissingRoles

setCreateMissingRoles()

@param boolean $createMissingRoles

Return type:ZendPermissionsRbacRbac

1501.1.1.2. getCreateMissingRoles

getCreateMissingRoles()

@return boolean

1501.1.1.3. addRole

addRole()

Add a child.

Parameters:string|RoleInterface
Return type:RoleInterface
Throws :ExceptionInvalidArgumentException

1501.1.1.4. hasRole

hasRole()

Is a child with $name registered?

Parameters:ZendPermissionsRbacRoleInterface|string
Return type:bool

1501.1.1.5. getRole

getRole()

Get a child.

Parameters:ZendPermissionsRbacRoleInterface|string
Return type:RoleInterface
Throws :ExceptionInvalidArgumentException

1501.1.1.6. isGranted

isGranted()

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

Parameters:
  • string
  • ZendPermissionsRbacAssertionInterface|Callable|null