Elgg  Version 5.1
Public Member Functions | Protected Attributes | List of all members
Elgg\PluginBootstrap Class Reference

Plugin bootstrap. More...

Inheritance diagram for Elgg\PluginBootstrap:
Elgg\PluginBootstrapInterface Elgg\DefaultPluginBootstrap

Public Member Functions

 __construct (\ElggPlugin $plugin, PublicContainer $dic)
 Constructor. More...
 
 elgg ()
 {Returns Elgg's public DI container.
Returns
PublicContainer
} More...
 
 plugin ()
 {Returns plugin entity this bootstrap is related to.
Returns
} More...
 
- Public Member Functions inherited from Elgg\PluginBootstrapInterface
 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...
 

Protected Attributes

 $plugin
 
 $dic
 

Detailed Description

Plugin bootstrap.

Definition at line 10 of file PluginBootstrap.php.

Constructor & Destructor Documentation

Elgg\PluginBootstrap::__construct ( \ElggPlugin  $plugin,
PublicContainer  $dic 
)

Constructor.

Parameters
\ElggPlugin$pluginThe plugin
PublicContainer$dicPublic services

Definition at line 28 of file PluginBootstrap.php.

Member Function Documentation

Elgg\PluginBootstrap::elgg ( )

{Returns Elgg's public DI container.

Returns
PublicContainer
}

Implements Elgg\PluginBootstrapInterface.

Definition at line 36 of file PluginBootstrap.php.

Elgg\PluginBootstrap::plugin ( )

{Returns plugin entity this bootstrap is related to.

Returns
}

Implements Elgg\PluginBootstrapInterface.

Definition at line 43 of file PluginBootstrap.php.

Member Data Documentation

Elgg\PluginBootstrap::$dic
protected

Definition at line 20 of file PluginBootstrap.php.

Elgg\PluginBootstrap::$plugin
protected

Definition at line 15 of file PluginBootstrap.php.


The documentation for this class was generated from the following file: