Elgg
Version master
|
Plugin bootstrap interface. More...
Public Member Functions | |
load () | |
Executed during 'plugins_load', 'system' event. More... | |
boot () | |
Executed during 'plugins_boot:before', 'system' event. More... | |
init () | |
Executed during 'init', 'system' event. More... | |
ready () | |
Executed during 'ready', 'system' event. More... | |
shutdown () | |
Executed during 'shutdown', 'system' event. More... | |
activate () | |
Executed when plugin is activated, after 'activate', 'plugin' event. More... | |
deactivate () | |
Executed when plugin is deactivated, after 'deactivate', 'plugin' event. More... | |
upgrade () | |
Registered as handler for 'upgrade', 'system' event. More... | |
elgg () | |
Returns Elgg's public DI container. More... | |
plugin () | |
Returns plugin entity this bootstrap is related to. More... | |
Plugin bootstrap interface.
Definition at line 10 of file PluginBootstrapInterface.php.
Elgg\PluginBootstrapInterface::activate | ( | ) |
Executed when plugin is activated, after 'activate', 'plugin' event.
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::boot | ( | ) |
Executed during 'plugins_boot:before', 'system' event.
Allows the plugin to register handlers for 'plugins_boot', 'system' and 'init', 'system' events, as well as implement boot time logic
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::deactivate | ( | ) |
Executed when plugin is deactivated, after 'deactivate', 'plugin' event.
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::elgg | ( | ) |
Elgg\PluginBootstrapInterface::init | ( | ) |
Executed during 'init', 'system' event.
Allows the plugin to implement business logic and register all other handlers
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::load | ( | ) |
Executed during 'plugins_load', 'system' event.
Allows the plugin to require additional files, as well as configure services prior to booting the plugin
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::plugin | ( | ) |
Elgg\PluginBootstrapInterface::ready | ( | ) |
Executed during 'ready', 'system' event.
Allows the plugin to implement logic after all plugins are initialized
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::shutdown | ( | ) |
Executed during 'shutdown', 'system' event.
Allows the plugin to implement logic during shutdown
Implemented in Elgg\DefaultPluginBootstrap.
Elgg\PluginBootstrapInterface::upgrade | ( | ) |
Registered as handler for 'upgrade', 'system' event.
Allows the plugin to implement logic during system upgrade
Implemented in Elgg\DefaultPluginBootstrap.