rbac\DbManager getUserIdsByRole()

getUserIdsByRole() public method (available since version 2.0.7)

Returns all role assignment information for the specified role.

public yii\rbac\Assignment[] getUserIdsByRole ( $roleName )
$roleName string
return yii\rbac\Assignment[]

The assignments. An empty array will be returned if role is not assigned to any user.

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

Please login to continue.