mongodb\rbac\MongoDbManager getChildRoles()

getChildRoles() public method (available since version 2.1.2)

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:09:18
Comments
Leave a Comment

Please login to continue.