rbac\PhpManager updateRule()

updateRule() public method Updates a rule to the RBAC system. public 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)

rbac\PhpManager saveToFile()

saveToFile() protected method Saves the authorization data to a PHP script file. See also loadFromFile(). protected void saveToFile ( $data, $file )$data array The authorization data $file string The file path.

rbac\PhpManager saveRules()

saveRules() protected method Saves rules data into persistent storage. protected void saveRules ( )

rbac\PhpManager saveItems()

saveItems() protected method Saves items data into persistent storage. protected void saveItems ( )

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

rbac\PhpManager saveAssignments()

saveAssignments() protected method Saves assignments data into persistent storage. protected void saveAssignments ( )

rbac\PhpManager save()

save() protected method Saves authorization data into persistent storage. protected void save ( )

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 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

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