StudIPPlugin.class.php - generic plugin base class
- Author
- Elmar Ludwig ludwi.nosp@m.g@uo.nosp@m.s.de
- Copyright
- 2009 Authors GPL2 or any later version
Return metadata stored in the manifest of this plugin.
Return the ID of this plugin.
Return the name of this plugin.
Return the filesystem path to this plugin.
Return the URL of this plugin. Can be used to refer to resources (images, style sheets, etc.) inside the installed plugin package.
Returns the version of this plugin as defined in manifest.
- Returns
- string
isActivatableForContext |
( |
Range |
$context | ) |
|
Returns whether the plugin may be activated in a certain context.
- Parameters
-
- Returns
- bool
isActivated |
( |
|
$context = null , |
|
|
|
$type = 'sem' |
|
) |
| |
Get the activation status of this plugin in the given context. This also checks the plugin default activations.
- Parameters
-
$context | context range id (optional) |
$type | type of activation (optional), can be set to 'user' in order to point to a homepage plugin |
Checks if the plugin is a core-plugin. Returns true if this is the case.
- Returns
- boolean
static onActivation |
( |
|
$plugin_id, |
|
|
|
$range_id |
|
) |
| |
|
static |
Callback function called after enabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
$plugin_id | string The ID of the plugin just enabled. |
static onDeactivation |
( |
|
$plugin_id, |
|
|
|
$range_id |
|
) |
| |
|
static |
Callback function called after disabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
$plugin_id | string The ID of the plugin just disabled. |
static onDisable |
( |
|
$plugin_id | ) |
|
|
static |
Callback function called after disabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
$plugin_id | string The ID of the plugin just disabled. |
static onEnable |
( |
|
$plugin_id | ) |
|
|
static |
Callback function called after enabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
$plugin_id | string The ID of the plugin just enabled. |
perform |
( |
|
$unconsumed_path | ) |
|
This method dispatches all actions.
- Parameters
-
string | part of the dispatch path that was not consumed |
- Returns
- void
The documentation for this class was generated from the following file: