Zend\Permissions\Acl\Role\Registry
Synopsis
class Registry
{
- // members
- protected array $roles;
- // methods
- public Registry add()
- public RoleInterface get()
- public bool has()
- public array getParents()
- public bool inherits()
- public Registry remove()
- public Registry removeAll()
- public array getRoles()
Members
protected
- $roles
—
array
Internal Role registry data storage
Methods
public
- add() — Adds a Role having an identifier unique to the registry
- get() — Returns the identified Role
- getParents() — Returns an array of an existing Role's parents
- getRoles() — Get all roles in the registry
- has() — Returns true if and only if the Role exists in the registry
- inherits() — Returns true if and only if $role inherits from $inherit
- remove() — Removes the Role from the registry
- removeAll() — Removes all Roles from the registry