\Amfphp_Core_PluginManager

Loads plugins for Amfphp. Plugins consist of a folder in the plugins folder. The folder and the class should all have the same name. The file containing the class should be named with the class name with the '.php' suffix added.

It is the loaded class' responsability to load any other resources that the plugin needs from the same folder. A plugin interacts with Amfphp by using the Amfphp_Core_FilterManager to register its functions to be called at specific times with specific parameters during execution. It's a singleton, so use getInstance

Summary

Methods
Properties
Constants
getInstance()
loadPlugins()
No public properties found
No constants found
__construct()
$instance
$pluginInstances
N/A
No private methods found
No private properties found
N/A

Properties

$pluginInstances

$pluginInstances : array

plugin instances

Type

array

Methods

loadPlugins()

loadPlugins(array $pluginFolders, array $pluginsConfig, array $sharedConfig, array $disabledPlugins)

load the plugins

Parameters

array $pluginFolders

where to load the plugins from. Absolute paths. For example Amfphp/Plugins/

array $pluginsConfig

optional. an array containing the plugin configuration, using the plugin name as key.

array $sharedConfig

optional. if both a specific config and a shared config are available, concatenate them to create the plugin config. Otherwise use whatever is not null

array $disabledPlugins

optional. an array of names of plugins to disable

__construct()

__construct()

constructor