Elgg  Version 3.0
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
ElggPlugin
} 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 and before activate.php is included. More...
 
 deactivate ()
 Executed when plugin is deactivated, after 'deactivate', 'plugin' event and before deactivate.php is included. More...
 
 upgrade ()
 Registered as handler for 'upgrade', 'system' event. More...
 

Protected Attributes

 $plugin
 
 $dic
 

Detailed Description

Plugin bootstrap.

Definition at line 11 of file PluginBootstrap.php.

Constructor & Destructor Documentation

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

Constructor.

Parameters
ElggPlugin$plugin
PublicContainer$dic

Definition at line 29 of file PluginBootstrap.php.

Member Function Documentation

Elgg\PluginBootstrap::elgg ( )

{Returns Elgg's public DI container.

Returns
PublicContainer
}

Implements Elgg\PluginBootstrapInterface.

Definition at line 37 of file PluginBootstrap.php.

Elgg\PluginBootstrap::plugin ( )

{Returns plugin entity this bootstrap is related to.

Returns
ElggPlugin
}

Implements Elgg\PluginBootstrapInterface.

Definition at line 44 of file PluginBootstrap.php.

Member Data Documentation

Elgg\PluginBootstrap::$dic
protected

Definition at line 21 of file PluginBootstrap.php.

Elgg\PluginBootstrap::$plugin
protected

Definition at line 16 of file PluginBootstrap.php.


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