rbac\ManagerInterface getChildRoles()

getChildRoles() public abstract method (available since version 2.0.10)

Returns the roles that are adding to the role via addChild() by recursive.

public abstract yii\rbac\Role[] getChildRoles ( $roleName )
$roleName string

Name of parent Role.

return yii\rbac\Role[]

All roles directly adding to the role. The array is indexed by the role names. First element is a Role item that are getting by $roleName.

throws yii\base\InvalidParamException

if Role was not found that are getting by $roleName

doc_Yii
2016-10-30 17:10:11
Comments
Leave a Comment

Please login to continue.