rbac\ManagerInterface getAssignment()

getAssignment() public abstract method

Returns the assignment information regarding a role and a user.

public abstract null|yii\rbac\Assignment getAssignment ( $roleName, $userId )
$roleName string

The role name

$userId string|integer

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

return null|yii\rbac\Assignment

The assignment information. Null is returned if the role is not assigned to the user.

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

Please login to continue.