◆ __construct()
◆ addStylesheet()
| addStylesheet |
( |
|
$filename | ) |
|
|
protected |
Includes given stylesheet in page, compiles less if neccessary
- Parameters
-
| String | $filename | Name of the stylesheet (css or less) to include (relative to plugin directory) |
◆ deactivationWarning()
| deactivationWarning |
( |
|
$context | ) |
|
Return a warning message to be printed before deactivation of this plugin in the given context.
- Parameters
-
Reimplemented in AbstractStudIPStandardPlugin.
◆ getMetadata()
Return metadata stored in the manifest of this plugin.
◆ getPluginId()
Return the ID of this plugin.
◆ getPluginName()
◆ getPluginPath()
Return the filesystem path to this plugin.
◆ getPluginURL()
Return the URL of this plugin. Can be used to refer to resources (images, style sheets, etc.) inside the installed plugin package.
◆ isActivated()
| 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 |
◆ isCorePlugin()
Checks if the plugin is a core-plugin. Returns true if this is the case.
- Returns
- boolean
◆ onDisable()
| static onDisable |
( |
|
$pluginId | ) |
|
|
static |
Callback function called after disabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
| $pluginId | string The ID of the plugin just disabled. |
◆ onEnable()
| static onEnable |
( |
|
$pluginId | ) |
|
|
static |
Callback function called after enabling a plugin. The plugin's ID is transmitted for convenience.
- Parameters
-
| $pluginId | string The ID of the plugin just enabled. |
◆ perform()
| perform |
( |
|
$unconsumed_path | ) |
|
This method dispatches all actions.
- Parameters
-
| string | part of the dispatch path that was not consumed |
- Returns
- void
Reimplemented in AbstractStudIPLegacyPlugin.
◆ $plugin_info
The documentation for this class was generated from the following file: