rbac\ManagerInterface getRoles()

getRoles() public abstract method Returns all roles in the system. public abstract yii\rbac\Role[] getRoles ( )return yii\rbac\Role[] All roles in the system. The array is indexed by the role names.

rbac\ManagerInterface getRole()

getRole() public abstract method Returns the named role. public abstract null|yii\rbac\Role getRole ( $name )$name string The role name. return null|yii\rbac\Role The role corresponding to the specified name. Null is returned if no such role.

rbac\ManagerInterface getPermissionsByUser()

getPermissionsByUser() public abstract method Returns all permissions that the user has. public abstract yii\rbac\Permission[] getPermissionsByUser ( $userId )$userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Permission[] All permissions that the user has. The array is indexed by the permission names.

rbac\ManagerInterface getPermissionsByRole()

getPermissionsByRole() public abstract method Returns all permissions that the specified role represents. public abstract yii\rbac\Permission[] getPermissionsByRole ( $roleName )$roleName string The role name return yii\rbac\Permission[] All permissions that the role represents. The array is indexed by the permission names.

rbac\ManagerInterface getPermissions()

getPermissions() public abstract method Returns all permissions in the system. public abstract yii\rbac\Permission[] getPermissions ( )return yii\rbac\Permission[] All permissions in the system. The array is indexed by the permission names.

rbac\ManagerInterface getPermission()

getPermission() public abstract method Returns the named permission. public abstract null|yii\rbac\Permission getPermission ( $name )$name string The permission name. return null|yii\rbac\Permission The permission corresponding to the specified name. Null is returned if no such permission.

rbac\ManagerInterface getChildRoles()

getChildRoles() public abstract method (available since version 2.0.10) Returns the roles that are adding to the role via addChild() by recursive. public abstract yii\rbac\Role[] getChildRoles ( $roleName )$roleName string Name of parent Role. return yii\rbac\Role[] All roles directly adding to the role. The array is indexed by the role names. First element is a Role item that are getting by $roleName. throws yii\base\InvalidParamException if Role was not found that are getting by $

rbac\ManagerInterface getChildren()

getChildren() public abstract method Returns the child permissions and/or roles. public abstract yii\rbac\Item[] getChildren ( $name )$name string The parent name return yii\rbac\Item[] The child permissions and/or roles

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.

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.