Assign a permission to a role.
Calls Assign_permission_to_role DB function and returns boolean result.
Role ID
Permission ID
true when assigned, false otherwise
Delete a role by its numeric ID.
Calls Delete_role_by_id DB function and returns boolean result.
Numeric ID of the role to delete
true when deleted, false otherwise
Delete a role by its name.
Calls Delete_role_by_name DB function and returns boolean result.
Name of the role to delete
true when deleted, false otherwise
ProtectedexecuteProtectedexecuteGet permissions assigned to a role by role ID.
Role ID
Array of Permission, or empty array if none
Get permissions assigned to a role by role name.
Role name
Array of Permission, or empty array if none
ProtectedmapProtectedmapProtectedmapRevoke a permission from a role.
Calls Revoke_permission_from_role DB function and returns boolean result.
Role ID
Permission ID
true when revoked, false otherwise
Protectedscalar
Protected constructor to enforce singleton usage via getInstance.