Zend\Permissions\Rbac\RoleInterface
Synopsis
interface RoleInterface
extends RecursiveIterator
{
- // methods
- public string getName()
- public RoleInterface addPermission()
- public bool hasPermission()
- public Role addChild()
- public RoleInterface setParent()
- public null|RoleInterface getParent()
- // Inherited methods from RecursiveIterator
- public RecursiveIterator getChildren()
- public bool hasChildren()
- public mixed current()
- public scalar key()
- public void next()
- public void rewind()
- public boolean valid()
- // Inherited methods from Iterator
- public mixed current()
- public scalar key()
- public void next()
- public void rewind()
- public boolean valid()
Hierarchy
Extends
Implemented by
Methods
public
- addChild() — Add a child.
- addPermission() — Add permission to the role.
- getName() — Get the name of the role.
- getParent()
- hasPermission() — Checks if a permission exists for this role or any child roles.
- setParent()
Inherited from RecursiveIterator
public
- current()
- getChildren() — Returns an iterator for the current entry.
- hasChildren() — Returns if an iterator can be created fot the current entry.
- key()
- next()
- rewind()
- valid()