rbac\PhpManager getChildRoles()

getChildRoles() public method

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

public 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:23
Comments
Leave a Comment

Please login to continue.