Create a new permission by name.
Calls the DB function Create_permission and returns the created Permission or null if not created.
Permission name (will be uppercased before call)
The created Permission or null
Delete a permission by its numeric ID.
Calls the DB function Delete_permission_by_id and returns boolean result.
Numeric ID of the permission to delete
true when deleted, false otherwise
f Delete a permission by its name.
The name will be uppercased before invoking the DB function.
Name of the permission to delete
true when deleted, false otherwise
ProtectedexecuteProtectedexecuteGet permission by its ID.
Numeric ID of the permission
Permission or null if not found
Get permission by its name.
Name of the permission to look up
Permission or null if not found
ProtectedmapProtectedmapProtectedmapProtectedscalar
Protected constructor to enforce singleton usage via getInstance.