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. |
Please login to continue.