Methods
(PHP 5 >= 5.0.0)<br/>
Return the current element
current() : mixed
Inherited
Returns
mixed
Can return any type.
(PHP 5 >= 5.1.0)<br/>
Returns an iterator for the current entry.
getChildren() : \RecursiveIterator
Inherited
Returns
\RecursiveIterator
An iterator for the current entry.
getCreateMissingRoles()
getCreateMissingRoles() : boolean
(PHP 5 >= 5.1.0)<br/>
Returns if an iterator can be created fot the current entry.
hasChildren() : bool
Inherited
Returns
bool
true if the current entry can be iterated over, otherwise returns false.
Determines if access is granted by checking the role and child roles for permission.
isGranted($role, string $permission, \Zend\Permissions\Rbac\AssertionInterface | \Zend\Permissions\Rbac\Callable | null $assert) : bool
Parameters
$role
$permission
string
Returns
bool
(PHP 5 >= 5.0.0)<br/>
Return the key of the current element
key() : \Zend\Permissions\Rbac\scalar
Inherited
Returns
\Zend\Permissions\Rbac\scalar
scalar on success, or null on failure.
(PHP 5 >= 5.0.0)<br/>
Move forward to next element
next() : void
Inherited
(PHP 5 >= 5.0.0)<br/>
Rewind the Iterator to the first element
rewind() : void
Inherited
setCreateMissingRoles()
setCreateMissingRoles(boolean $createMissingRoles) : \Zend\Permissions\Rbac\Rbac
Parameters
$createMissingRoles
boolean
Returns
(PHP 5 >= 5.0.0)<br/>
Checks if current position is valid
valid() : boolean
Inherited
Returns
boolean
The return value will be casted to boolean and then evaluated. Returns true on success or false on failure.
Properties
$children
$children
Inherited
inherited_from |
\Zend\Permissions\Rbac\AbstractIterator::$$children |
flag: whether or not to create roles automatically if
they do not exist.
$createMissingRoles : bool
$index
$index
Inherited
inherited_from |
\Zend\Permissions\Rbac\AbstractIterator::$$index |