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

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

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)