mongodb\rbac\Role $parents

$parents public property List of parent item names. public array|null $parents = null

mongodb\rbac\Permission $parents

$parents public property List of parent item names. public array|null $parents = null

mongodb\rbac\MongoDbManager updateRule()

updateRule() protected method Updates a rule to the RBAC system. protected boolean updateRule ( $name, $rule )$name string The name of the rule being updated $rule yii\rbac\Rule The updated rule return boolean Whether the rule is successfully updated throws Exception if data validation or saving fails (such as the name of the rule is not unique)

mongodb\rbac\MongoDbManager updateItem()

updateItem() protected method Updates an auth item in the RBAC system. protected boolean updateItem ( $name, $item )$name string The name of the item being updated $item yii\rbac\Item The updated item return boolean Whether the auth item is successfully updated throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

mongodb\rbac\MongoDbManager revokeAll()

revokeAll() public method Revokes all roles from a user. public boolean revokeAll ( $userId )$userId mixed The user ID (see yii\web\User::$id) return boolean Whether the revoking is successful

mongodb\rbac\MongoDbManager revoke()

revoke() public method Revokes a role from a user. public boolean revoke ( $role, $userId )$role yii\rbac\Role $userId string|integer The user ID (see yii\web\User::$id) return boolean Whether the revoking is successful

mongodb\rbac\MongoDbManager removeRule()

removeRule() protected method Removes a rule from the RBAC system. protected boolean removeRule ( $rule )$rule yii\rbac\Rule The rule to remove return boolean Whether the rule is successfully removed throws Exception if data validation or saving fails (such as the name of the rule is not unique)

mongodb\rbac\MongoDbManager removeItem()

removeItem() protected method Removes an auth item from the RBAC system. protected boolean removeItem ( $item )$item yii\rbac\Item The item to remove return boolean Whether the role or permission is successfully removed throws Exception if data validation or saving fails (such as the name of the role or permission is not unique)

mongodb\rbac\MongoDbManager removeChildren()

removeChildren() public method Removed all children form their parent. Note, the children items are not deleted. Only the parent-child relationships are removed. public boolean removeChildren ( $parent )$parent yii\rbac\Item return boolean Whether the removal is successful

mongodb\rbac\MongoDbManager removeChild()

removeChild() public method Removes a child from its parent. Note, the child item is not deleted. Only the parent-child relationship is removed. public boolean removeChild ( $parent, $child )$parent yii\rbac\Item $child yii\rbac\Item return boolean Whether the removal is successful