Interface RoleInterface

Summary

Fully Qualified Name: Zend\Permissions\Rbac\RoleInterface
Extends: RecursiveIterator

Description

Methods

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

Method Details

addChild()

Add a child.

Parameter Name Type Description
$child \RoleInterface|string

Returns: \Role

addPermission()

Add permission to the role.

Parameter Name Type Description
$name
$name

Returns: \RoleInterface

getName()

Get the name of the role.

Returns: string

getParent()

Returns: null|\RoleInterface|array

hasPermission()

Checks if a permission exists for this role or any child roles.

Parameter Name Type Description
$name string

Returns: bool

setParent()

Parameter Name Type Description
$parent \RoleInterface

Returns: \RoleInterface

Top