YANA 4 PHP Framework
Docs For Class PluginManager
«Singleton» PluginManager
This class implements communication between plugins and provides access to virtual drives and local registries which may be defined on a per plugin basis.
Located in /includes/class_pluginmanager.php
Object | --Singleton | --PluginManager
Name | Type | Description |
---|---|---|
$pluginName | string | |
$key | string |
Each plugin defines it's own virtual drive with files that are required for it to function as intended.
You may access the virtual drive of any plugin if you know the plugin's name $pluginName and the name $key of the file you want. This is usefull from plugins that extend the functionality of another.
This returns a string value. By default the plugin install path is "plugins/". Still you should note, that you are strongly encouraged to use this function rather than using hard-wired pathnames in your source-code.
Name | Type | Description |
---|---|---|
$event | string | |
$ARGUMENTS | array | |
$criteria | string | (optional) |
This function looks up an event that you provide with the argument $event, and sends it to all plugins that are in the event's group of recipients.
Note: that "handle an event" actually means "calling a function that serves as an event handler". You may pass arguments to this function by using the argument $ARGUMENTS, which is supposed to be an associative array.
You may manually choose a group of recipients by providing the optional $criteria argument, which may be one of the following: "default", "primary", "security", "read", "write", "config". If this argument is not provided, the recipients are determined automatically. This is also the default behaviour.
Name | Type | Description |
---|---|---|
$pluginName | string |
This returns bool(true) if a plugin with the name $pluginName exists and has currently been installed. Otherwise it returns bool(false).
Inherited From Singleton
Inherited From Object
Documentation generated on Wed, 22 Nov 2006 20:19:11 +0100 by phpDocumentor 1.3.1