Fully Qualified Name: | Zend\Permissions\Rbac\RoleInterface |
Extends: | RecursiveIterator |
Name | Description | Defined By |
---|---|---|
addChild() | Add a child. | RoleInterface |
addPermission() | Add permission to the role. | RoleInterface |
getName() | Get the name of the role. | RoleInterface |
getParent() | RoleInterface | |
hasPermission() | Checks if a permission exists for this role or any child roles. | RoleInterface |
setParent() | RoleInterface |
Add a child.
Parameter Name | Type | Description |
---|---|---|
$child | \RoleInterface|string |
Returns: \Role
Add permission to the role.
Parameter Name | Type | Description |
---|---|---|
$name | ||
$name |
Returns: \RoleInterface
Get the name of the role.
Returns: string
Returns: null|\RoleInterface|array
Checks if a permission exists for this role or any child roles.
Parameter Name | Type | Description |
---|---|---|
$name | string |
Returns: bool
Parameter Name | Type | Description |
---|---|---|
$parent | \RoleInterface |
Returns: \RoleInterface