Constants

PLACE_MAIN

PLACE_MAIN

PLACE_ADDITIONAL

PLACE_ADDITIONAL

PLACE_ADMIN

PLACE_ADMIN

SECTION_ADMIN_TOOLS

SECTION_ADMIN_TOOLS

SECTION_ADMIN_APPS

SECTION_ADMIN_APPS

SECTION_ADMIN_PANEL

SECTION_ADMIN_PANEL

SECTION_ADMIN_APPEARANCE

SECTION_ADMIN_APPEARANCE

SECTION_ADMIN_STATISTICS

SECTION_ADMIN_STATISTICS

SECTION_ADMIN_GENERAL

SECTION_ADMIN_GENERAL

SECTION_ADMIN_MAIL

SECTION_ADMIN_MAIL

SECTION_ADMIN_SERVER

SECTION_ADMIN_SERVER

SECTION_ADMIN_SERVICES

SECTION_ADMIN_SERVICES

SECTION_ADMIN_MODULES

SECTION_ADMIN_MODULES

Methods

getPermissions()

getPermissions() : array

Retrieve the list of permissions

[
    'unique_permission_id' => [
        'default' => false,
        'place' => self::PLACE_MAIN,
        'name' => 'Permission name',
        'description' => 'Permission description',
        'master' => 'master_permission_id',
    ],
    'another_unique_permission_id' => [
        'default' => true,
        'place' => self::PLACE_ADMIN,
        // 'section' is only active when self::PLACE_ADMIN is used, if omitted, defaults to self::SECTION_ADMIN_MODULES
        'section' => self::SECTION_ADMIN_APPS,
        'name' => 'Permission name',
        'description' => 'Permission description',
        'master' => 'another_master_permission_id',
    ],
    ...
]

Returns

array