removeAllAssignments() public abstract method Removes all role assignments. public abstract void removeAllAssignments ( )
removeAllRules() public abstract method Removes all rules. All roles and permissions which have rules will be adjusted accordingly. public abstract void removeAllRules ( )
removeAllRoles() public abstract method Removes all roles. All parent child relations will be adjusted accordingly. public abstract void removeAllRoles ( )
removeAll() public abstract method Removes all authorization data, including roles, permissions, rules, and assignments. public abstract void removeAll ( )
getUserIdsByRole() public abstract method (available since version 2.0.7) Returns all user IDs assigned to the role specified. public abstract array getUserIdsByRole ( $roleName )$roleName string return array Array of user ID strings
remove() public abstract method Removes a role, permission or rule from the RBAC system. public abstract boolean remove ( $object )$object yii\rbac\Role|yii\rbac\Permission|yii\rbac\Rule return boolean Whether the role, permission or rule is successfully removed
hasChild() public abstract method Returns a value indicating whether the child already exists for the parent. public abstract boolean hasChild ( $parent, $child )$parent yii\rbac\Item $child yii\rbac\Item return boolean Whether $child is already a child of $parent
getRule() public abstract method Returns the rule of the specified name. public abstract null|yii\rbac\Rule getRule ( $name )$name string The rule name return null|yii\rbac\Rule The rule object, or null if the specified name does not correspond to a rule.
getRules() public abstract method Returns all rules available in the system. public abstract yii\rbac\Rule[] getRules ( )return yii\rbac\Rule[] The rules indexed by the rule names
getRolesByUser() public abstract method Returns the roles that are assigned to the user via assign(). Note that child roles that are not assigned directly to the user will not be returned. public abstract yii\rbac\Role[] getRolesByUser ( $userId )$userId string|integer The user ID (see yii\web\User::$id) return yii\rbac\Role[] All roles directly assigned to the user. The array is indexed by the role names.
Page 176 of 633