1499. Class

1499.1. Zend\Permissions\Rbac\AbstractRole

1499.1.1. Methods

1499.1.1.1. getName

getName()

Get the name of the role.

Return type:string

1499.1.1.2. addPermission

addPermission()

Add permission to the role.

Parameters:$name
Return type:RoleInterface

1499.1.1.3. hasPermission

hasPermission()

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

Parameters:string
Return type:bool

1499.1.1.4. addChild

addChild()

Add a child.

Parameters:RoleInterface|string
Return type:Role

1499.1.1.5. setParent

setParent()

@param RoleInterface $parent

Return type:RoleInterface

1499.1.1.6. getParent

getParent()

@return null|RoleInterface

Project Versions

Table Of Contents

Previous topic

1498. Class

Next topic

1500. Function

This Page