Zend\Permissions\Rbac\Rbac
Synopsis
class Rbac
extends AbstractIterator
{
- // members
- protected bool $createMissingRoles;
- // methods
- public Rbac setCreateMissingRoles()
- public bool getCreateMissingRoles()
- public self addRole()
- public bool hasRole()
- public RoleInterface getRole()
- public bool isGranted()
- // Inherited methods from AbstractIterator
- public mixed current()
- public void next()
- public scalar key()
- public bool valid()
- public void rewind()
- public bool hasChildren()
- public RecursiveIterator getChildren()
Hierarchy
Members
protected
- $children
- $createMissingRoles
—
Zend\Permissions\Rbac\bool
flag: whether or not to create roles automatically if they do not exist. - $index
Methods
public
- addRole() — Add a child.
- getCreateMissingRoles()
- getRole() — Get a child.
- hasRole() — Is a child with $name registered?
- isGranted() — Determines if access is granted by checking the role and child roles for permission.
- setCreateMissingRoles()
Inherited from Zend\Permissions\Rbac\AbstractIterator
public
- current() — (PHP 5 >= 5.0.0)<br/> Return the current element
- getChildren() — (PHP 5 >= 5.1.0)<br/> Returns an iterator for the current entry.
- hasChildren() — (PHP 5 >= 5.1.0)<br/> Returns if an iterator can be created fot the current entry.
- key() — (PHP 5 >= 5.0.0)<br/> Return the key of the current element
- next() — (PHP 5 >= 5.0.0)<br/> Move forward to next element
- rewind() — (PHP 5 >= 5.0.0)<br/> Rewind the Iterator to the first element
- valid() — (PHP 5 >= 5.0.0)<br/> Checks if current position is valid