pm_Hook_CustomButtons
in package
implements
pm_Hook_Interface
Hook for custom buttons embedding
Tags
Interfaces, Classes and Traits
- pm_Hook_Interface
- Generic interface for hooks
Table of Contents
- PLACE_ADD_DOMAIN_DRAWER = 19
- PLACE_ADMIN_HOME = 2
- PLACE_ADMIN_NAVIGATION = 12
- PLACE_ADMIN_TOOLS_AND_SETTINGS = 5
- PLACE_COMMON = 1
- PLACE_CUSTOMER_HOME = 4
- PLACE_DOMAIN = 8
- PLACE_DOMAIN_HEADER_DYNAMIC = 17
- PLACE_DOMAIN_PROPERTIES = 9
- PLACE_DOMAIN_PROPERTIES_DYNAMIC = 16
- PLACE_HEADER_NAVIGATION = 15
- PLACE_HOSTING_PANEL_NAVIGATION = 7
- PLACE_HOSTING_PANEL_TABS = 14
- PLACE_INSTALL_APPLICATION_DRAWER = 18
- PLACE_LIST_ACTIONS = 11
- PLACE_RESELLER_HOME = 3
- PLACE_RESELLER_NAVIGATION = 13
- PLACE_RESELLER_TOOLS_AND_SETTINGS = 6
- PLACE_TOOLBAR = 10
- SECTION_ADMIN_TOOLS_ADDITIONAL_SERVICES = 'customButtons'
- SECTION_ADMIN_TOOLS_APPEARANCE = 'uiButtons'
- SECTION_ADMIN_TOOLS_APPS_AND_DBS = 'applicationsAndDatabasesButtons'
- SECTION_ADMIN_TOOLS_EXTERNAL_SERVICES = 'myPleskButtons'
- SECTION_ADMIN_TOOLS_GENERAL = 'generalButtons'
- SECTION_ADMIN_TOOLS_MAIL = 'mailButtons'
- SECTION_ADMIN_TOOLS_PLESK = 'panelButtons'
- SECTION_ADMIN_TOOLS_SECURITY = 'securityButtons'
- SECTION_ADMIN_TOOLS_SERVER_MANAGEMENT = 'serverManagementButtons'
- SECTION_ADMIN_TOOLS_STATISTICS = 'statisticsButtons'
- SECTION_ADMIN_TOOLS_TOOLS_AND_RESOURCES = 'toolsAndResourcesButtons'
- SECTION_ADMIN_TOOLS_TROUBLESHOOTING_BUTTONS = 'troubleshootingButtons'
- SECTION_DOMAIN_PROPS_DYNAMIC_DEV_TOOLS = 'devTools'
- SECTION_DOMAIN_PROPS_DYNAMIC_FILES_AND_DATABASES = 'filesAndDatabases'
- SECTION_DOMAIN_PROPS_DYNAMIC_HOSTING = 'hosting'
- SECTION_DOMAIN_PROPS_DYNAMIC_MAIL = 'mail'
- SECTION_DOMAIN_PROPS_DYNAMIC_SECURITY = 'security'
- SECTION_NAV_ADDITIONAL = 'custom_buttons'
- SECTION_NAV_GENERAL = 'general'
- SECTION_NAV_HOSTING = 'hosting'
- SECTION_NAV_PROFILE = 'profile'
- SECTION_NAV_SERVER_MANAGEMENT = 'server_management'
- SECTION_RESELLER_TOOLS_ADDITIONAL_SERVICES = 'customButtons'
- SECTION_RESELLER_TOOLS_PLESK_MANAGEMENT = 'toolsButtons'
- SECTION_RESELLER_TOOLS_RESOURCES = 'resourcesButtons'
- SECTION_RESELLER_TOOLS_SERVICES = 'myPleskButtons'
- getButtons() : array<string|int, mixed>
- Retrieve the list of buttons
Constants
PLACE_ADD_DOMAIN_DRAWER
public
mixed
PLACE_ADD_DOMAIN_DRAWER
= 19
Tags
PLACE_ADMIN_HOME
public
mixed
PLACE_ADMIN_HOME
= 2
Tags
PLACE_ADMIN_NAVIGATION
public
mixed
PLACE_ADMIN_NAVIGATION
= 12
Tags
PLACE_ADMIN_TOOLS_AND_SETTINGS
public
mixed
PLACE_ADMIN_TOOLS_AND_SETTINGS
= 5
Tags
PLACE_COMMON
public
mixed
PLACE_COMMON
= 1
Tags
PLACE_CUSTOMER_HOME
public
mixed
PLACE_CUSTOMER_HOME
= 4
Tags
PLACE_DOMAIN
public
mixed
PLACE_DOMAIN
= 8
Tags
PLACE_DOMAIN_HEADER_DYNAMIC
public
mixed
PLACE_DOMAIN_HEADER_DYNAMIC
= 17
Tags
PLACE_DOMAIN_PROPERTIES
public
mixed
PLACE_DOMAIN_PROPERTIES
= 9
Tags
PLACE_DOMAIN_PROPERTIES_DYNAMIC
public
mixed
PLACE_DOMAIN_PROPERTIES_DYNAMIC
= 16
Tags
PLACE_HEADER_NAVIGATION
public
mixed
PLACE_HEADER_NAVIGATION
= 15
Tags
PLACE_HOSTING_PANEL_NAVIGATION
public
mixed
PLACE_HOSTING_PANEL_NAVIGATION
= 7
Tags
PLACE_HOSTING_PANEL_TABS
public
mixed
PLACE_HOSTING_PANEL_TABS
= 14
Tags
PLACE_INSTALL_APPLICATION_DRAWER
public
mixed
PLACE_INSTALL_APPLICATION_DRAWER
= 18
Tags
PLACE_LIST_ACTIONS
public
mixed
PLACE_LIST_ACTIONS
= 11
Tags
PLACE_RESELLER_HOME
public
mixed
PLACE_RESELLER_HOME
= 3
Tags
PLACE_RESELLER_NAVIGATION
public
mixed
PLACE_RESELLER_NAVIGATION
= 13
Tags
PLACE_RESELLER_TOOLS_AND_SETTINGS
public
mixed
PLACE_RESELLER_TOOLS_AND_SETTINGS
= 6
Tags
PLACE_TOOLBAR
public
mixed
PLACE_TOOLBAR
= 10
Tags
SECTION_ADMIN_TOOLS_ADDITIONAL_SERVICES
public
mixed
SECTION_ADMIN_TOOLS_ADDITIONAL_SERVICES
= 'customButtons'
Tags
SECTION_ADMIN_TOOLS_APPEARANCE
public
mixed
SECTION_ADMIN_TOOLS_APPEARANCE
= 'uiButtons'
Tags
SECTION_ADMIN_TOOLS_APPS_AND_DBS
public
mixed
SECTION_ADMIN_TOOLS_APPS_AND_DBS
= 'applicationsAndDatabasesButtons'
Tags
SECTION_ADMIN_TOOLS_EXTERNAL_SERVICES
public
mixed
SECTION_ADMIN_TOOLS_EXTERNAL_SERVICES
= 'myPleskButtons'
Tags
SECTION_ADMIN_TOOLS_GENERAL
public
mixed
SECTION_ADMIN_TOOLS_GENERAL
= 'generalButtons'
Tags
SECTION_ADMIN_TOOLS_MAIL
public
mixed
SECTION_ADMIN_TOOLS_MAIL
= 'mailButtons'
Tags
SECTION_ADMIN_TOOLS_PLESK
public
mixed
SECTION_ADMIN_TOOLS_PLESK
= 'panelButtons'
Tags
SECTION_ADMIN_TOOLS_SECURITY
public
mixed
SECTION_ADMIN_TOOLS_SECURITY
= 'securityButtons'
Tags
SECTION_ADMIN_TOOLS_SERVER_MANAGEMENT
public
mixed
SECTION_ADMIN_TOOLS_SERVER_MANAGEMENT
= 'serverManagementButtons'
Tags
SECTION_ADMIN_TOOLS_STATISTICS
public
mixed
SECTION_ADMIN_TOOLS_STATISTICS
= 'statisticsButtons'
Tags
SECTION_ADMIN_TOOLS_TOOLS_AND_RESOURCES
public
mixed
SECTION_ADMIN_TOOLS_TOOLS_AND_RESOURCES
= 'toolsAndResourcesButtons'
Tags
SECTION_ADMIN_TOOLS_TROUBLESHOOTING_BUTTONS
public
mixed
SECTION_ADMIN_TOOLS_TROUBLESHOOTING_BUTTONS
= 'troubleshootingButtons'
Tags
SECTION_DOMAIN_PROPS_DYNAMIC_DEV_TOOLS
public
mixed
SECTION_DOMAIN_PROPS_DYNAMIC_DEV_TOOLS
= 'devTools'
Tags
SECTION_DOMAIN_PROPS_DYNAMIC_FILES_AND_DATABASES
public
mixed
SECTION_DOMAIN_PROPS_DYNAMIC_FILES_AND_DATABASES
= 'filesAndDatabases'
Tags
SECTION_DOMAIN_PROPS_DYNAMIC_HOSTING
public
mixed
SECTION_DOMAIN_PROPS_DYNAMIC_HOSTING
= 'hosting'
Tags
SECTION_DOMAIN_PROPS_DYNAMIC_MAIL
public
mixed
SECTION_DOMAIN_PROPS_DYNAMIC_MAIL
= 'mail'
Tags
SECTION_DOMAIN_PROPS_DYNAMIC_SECURITY
public
mixed
SECTION_DOMAIN_PROPS_DYNAMIC_SECURITY
= 'security'
Tags
SECTION_NAV_ADDITIONAL
public
mixed
SECTION_NAV_ADDITIONAL
= 'custom_buttons'
Tags
SECTION_NAV_GENERAL
public
mixed
SECTION_NAV_GENERAL
= 'general'
Tags
SECTION_NAV_HOSTING
public
mixed
SECTION_NAV_HOSTING
= 'hosting'
Tags
SECTION_NAV_PROFILE
public
mixed
SECTION_NAV_PROFILE
= 'profile'
Tags
SECTION_NAV_SERVER_MANAGEMENT
public
mixed
SECTION_NAV_SERVER_MANAGEMENT
= 'server_management'
Tags
SECTION_RESELLER_TOOLS_ADDITIONAL_SERVICES
public
mixed
SECTION_RESELLER_TOOLS_ADDITIONAL_SERVICES
= 'customButtons'
Tags
SECTION_RESELLER_TOOLS_PLESK_MANAGEMENT
public
mixed
SECTION_RESELLER_TOOLS_PLESK_MANAGEMENT
= 'toolsButtons'
Tags
SECTION_RESELLER_TOOLS_RESOURCES
public
mixed
SECTION_RESELLER_TOOLS_RESOURCES
= 'resourcesButtons'
Tags
SECTION_RESELLER_TOOLS_SERVICES
public
mixed
SECTION_RESELLER_TOOLS_SERVICES
= 'myPleskButtons'
Tags
Methods
getButtons()
Retrieve the list of buttons
public
abstract getButtons() : array<string|int, mixed>
[
[
'place' => self::PLACE_DOMAIN_PROPERTIES_DYNAMIC,
'section' => self::SECTION_DOMAIN_PROPS_DYNAMIC_DEV_TOOLS,
'title' => 'Example Button',
'description' => 'Description for example button',
'icon' => pm_Context::getBaseUrl() . 'images/icon.png',
'link' => pm_Context::getBaseUrl() . 'index.php/index/index',
'newWindow' => false,
'contextParams' => true,
'visibility' => [$this, 'isExampleButtonVisible'],
],
...
]