rbac\ManagerInterface getAssignments()

getAssignments() public abstract method

Returns all role assignment information for the specified user.

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

Please login to continue.