rbac\PhpManager removeItem()

removeItem() public method Removes an auth item from the RBAC system. public 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)

rbac\PhpManager 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

rbac\PhpManager removeAllRules()

removeAllRules() public method Removes all rules. All roles and permissions which have rules will be adjusted accordingly. public void removeAllRules ( )

rbac\PhpManager removeAllRoles()

removeAllRoles() public method Removes all roles. All parent child relations will be adjusted accordingly. public void removeAllRoles ( )

rbac\PhpManager removeAll()

removeAll() public method Removes all authorization data, including roles, permissions, rules, and assignments. public void removeAll ( )

rbac\PhpManager removeAllAssignments()

removeAllAssignments() public method Removes all role assignments. public void removeAllAssignments ( )

rbac\PhpManager removeAllItems()

removeAllItems() protected method Removes all auth items of the specified type. protected void removeAllItems ( $type )$type integer The auth item type (either Item::TYPE_PERMISSION or Item::TYPE_ROLE)

rbac\PhpManager removeAllPermissions()

removeAllPermissions() public method Removes all permissions. All parent child relations will be adjusted accordingly. public void removeAllPermissions ( )

rbac\PhpManager loadFromFile()

loadFromFile() protected method Loads the authorization data from a PHP script file. See also saveToFile(). protected array loadFromFile ( $file )$file string The file path. return array The authorization data

rbac\PhpManager load()

load() protected method Loads authorization data from persistent storage. protected void load ( )