AdminPermissions
in package
Table of Contents
Constants
- PERMISSION_CATEGORIES = [1 => 'Monitor Players', 2 => 'Community Services', 3 => 'Administrative', 4 => 'Miscellaneous', 5 => 'Manage Games']
- PERMISSION_TABLE = [1 => ['Manage Admin Permissions', \Smr\Pages\Admin\AdminPermissionManage::class, 3], 2 => ['Database Cleanup', \Smr\Pages\Admin\DatabaseCleanup::class, 3], 3 => ['Server Open/Close', \Smr\Pages\Admin\ServerStatus::class, 3], 4 => ['Delete Game', \Smr\Pages\Admin\GameDelete::class, 5], 5 => ['Create Announcement', \Smr\Pages\Admin\AnnouncementCreate::class, 3], 6 => ['Send Message', \Smr\Pages\Admin\AdminMessageSendSelect::class, 3], 7 => ['View Reported Messages', \Smr\Pages\Admin\ReportedMessageView::class, 1], 8 => ['Edit Account', \Smr\Pages\Admin\AccountEditSearch::class, 1], 9 => ['Multi Tools', \Smr\Pages\Admin\IpView::class, 1], 12 => ['Cheating Ship Check', \Smr\Pages\Admin\CheatingShipCheck::class, 1], 16 => ['Log Console', \Smr\Pages\Admin\LogConsole::class, 1], 17 => ['Send Newsletter', \Smr\Pages\Admin\NewsletterSend::class, 3], 18 => ['Form Access', \Smr\Pages\Admin\FormOpen::class, 3], 19 => ['Approve Photo Album', \Smr\Pages\Admin\AlbumApprove::class, 2], 20 => ['Moderate Photo Album', \Smr\Pages\Admin\AlbumModerateSelect::class, 2], 21 => ['Manage ChangeLog', \Smr\Pages\Admin\ChangelogAdd::class, 3], 22 => ['Anon Account View', \Smr\Pages\Admin\AnonBankViewSelect::class, 1], 23 => ['Word Filter', \Smr\Pages\Admin\WordFilter::class, 1], 24 => ['Combat Simulator', \Smr\Pages\Admin\CombatSimulator::class, 4], 25 => ['Edit Locations', \Smr\Pages\Admin\EditLocations::class, 4], 26 => ['View Message Boxes', \Smr\Pages\Admin\MessageBoxView::class, 1], 27 => ['Can Moderate Feature Requests', null, 2], 28 => ['Can Edit Alliance Descriptions', null, 1], 30 => ['Universe Generator', \Smr\Pages\Admin\UniGen\CreateGame::class, 5], 31 => ['Create Vote', \Smr\Pages\Admin\VoteCreate::class, 3], 32 => ['Can Edit Enabled Games', null, 5], 33 => ['Enable Games', \Smr\Pages\Admin\EnableGame::class, 5], 34 => ['Manage Galactic Post Editors', \Smr\Pages\Admin\ManagePostEditors::class, 5], 35 => ['Manage Draft Leaders', \Smr\Pages\Admin\ManageDraftLeaders::class, 5], 36 => ['Display Admin Tag', null, 2], 37 => ['Manage NPCs', \Smr\Pages\Admin\NpcManage::class, 5]]
Methods
- getCategoryName() : string
- getPermissionInfo() : Page>, : int}
- Returns the info for the admin permission with the given ID.
- getPermissionsByCategory() : array<int, array<int, string>>
- Returns a list of all permissions with ID keys and name values, grouped by the category ID of the permission.
Constants
PERMISSION_CATEGORIES
private
mixed
PERMISSION_CATEGORIES
= [1 => 'Monitor Players', 2 => 'Community Services', 3 => 'Administrative', 4 => 'Miscellaneous', 5 => 'Manage Games']
PERMISSION_TABLE
private
mixed
PERMISSION_TABLE
= [1 => ['Manage Admin Permissions', \Smr\Pages\Admin\AdminPermissionManage::class, 3], 2 => ['Database Cleanup', \Smr\Pages\Admin\DatabaseCleanup::class, 3], 3 => ['Server Open/Close', \Smr\Pages\Admin\ServerStatus::class, 3], 4 => ['Delete Game', \Smr\Pages\Admin\GameDelete::class, 5], 5 => ['Create Announcement', \Smr\Pages\Admin\AnnouncementCreate::class, 3], 6 => ['Send Message', \Smr\Pages\Admin\AdminMessageSendSelect::class, 3], 7 => ['View Reported Messages', \Smr\Pages\Admin\ReportedMessageView::class, 1], 8 => ['Edit Account', \Smr\Pages\Admin\AccountEditSearch::class, 1], 9 => ['Multi Tools', \Smr\Pages\Admin\IpView::class, 1], 12 => ['Cheating Ship Check', \Smr\Pages\Admin\CheatingShipCheck::class, 1], 16 => ['Log Console', \Smr\Pages\Admin\LogConsole::class, 1], 17 => ['Send Newsletter', \Smr\Pages\Admin\NewsletterSend::class, 3], 18 => ['Form Access', \Smr\Pages\Admin\FormOpen::class, 3], 19 => ['Approve Photo Album', \Smr\Pages\Admin\AlbumApprove::class, 2], 20 => ['Moderate Photo Album', \Smr\Pages\Admin\AlbumModerateSelect::class, 2], 21 => ['Manage ChangeLog', \Smr\Pages\Admin\ChangelogAdd::class, 3], 22 => ['Anon Account View', \Smr\Pages\Admin\AnonBankViewSelect::class, 1], 23 => ['Word Filter', \Smr\Pages\Admin\WordFilter::class, 1], 24 => ['Combat Simulator', \Smr\Pages\Admin\CombatSimulator::class, 4], 25 => ['Edit Locations', \Smr\Pages\Admin\EditLocations::class, 4], 26 => ['View Message Boxes', \Smr\Pages\Admin\MessageBoxView::class, 1], 27 => ['Can Moderate Feature Requests', null, 2], 28 => ['Can Edit Alliance Descriptions', null, 1], 30 => ['Universe Generator', \Smr\Pages\Admin\UniGen\CreateGame::class, 5], 31 => ['Create Vote', \Smr\Pages\Admin\VoteCreate::class, 3], 32 => ['Can Edit Enabled Games', null, 5], 33 => ['Enable Games', \Smr\Pages\Admin\EnableGame::class, 5], 34 => ['Manage Galactic Post Editors', \Smr\Pages\Admin\ManagePostEditors::class, 5], 35 => ['Manage Draft Leaders', \Smr\Pages\Admin\ManageDraftLeaders::class, 5], 36 => ['Display Admin Tag', null, 2], 37 => ['Manage NPCs', \Smr\Pages\Admin\NpcManage::class, 5]]
Methods
getCategoryName()
public
static getCategoryName(int $categoryID) : string
Parameters
- $categoryID : int
Return values
stringgetPermissionInfo()
Returns the info for the admin permission with the given ID.
public
static getPermissionInfo(int $permissionID) : Page>, : int}
Parameters
- $permissionID : int
Return values
Page>, : int}getPermissionsByCategory()
Returns a list of all permissions with ID keys and name values, grouped by the category ID of the permission.
public
static getPermissionsByCategory() : array<int, array<int, string>>