CorePlugin.php - base class
- Author
- André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e
- Copyright
- 2021 Authors GPL2 or any later version
◆ __construct()
plugin constructor TODO bindtextdomain()
◆ checkActivation()
static checkActivation |
( |
|
$range_id | ) |
|
|
static |
◆ getDescriptionMode()
◆ getHighlightText()
◆ getPluginDescription()
◆ getPluginId()
Return the ID of this plugin.
◆ getPluginName()
Return the name of this plugin.
◆ getPluginURL()
◆ getPluginVersion()
Returns the version of this plugin as defined in manifest.
- Returns
- string
◆ isActivatableForContext()
isActivatableForContext |
( |
Range |
$context | ) |
|
Returns whether the plugin may be activated in a certain context.
- Parameters
-
- Returns
- bool
◆ isActivated()
isActivated |
( |
|
$context = null | ) |
|
Get the activation status of this plugin in the given context. This also checks the plugin default activations.
- Parameters
-
$context | context range id (optional) |
◆ isCorePlugin()
Checks if the plugin is a core-plugin. Returns true if this is the case.
- Returns
- boolean
◆ isEnabled()
◆ isHighlighted()
◆ onActivation()
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. |
◆ onDeactivation()
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. |
◆ onDisable()
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. |
◆ onEnable()
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. |
◆ $plugin_info
The documentation for this class was generated from the following file: