rbac\DbManager getAssignments()

getAssignments() public method

Returns all role assignment information for the specified user.

public yii\rbac\Assignment[] getAssignments ( $userId )
$userId string|integer

The user ID (see yii\web\User::$id)

return yii\rbac\Assignment[]

The assignments indexed by role names. An empty array will be returned if there is no role assigned to the user.

doc_Yii
2016-10-30 17:09:55
Comments
Leave a Comment

Please login to continue.