Class Amfphp_Core_PluginManager

Description

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

  • author: Ariel Sommeria-Klein

Located in /Amfphp/Core/PluginManager.php (line 23)


	
			
Method Summary
void loadPlugins (String $rootFolder, [ $pluginsConfig = null], [ $disabledPlugins = null], array $pluginConfig)
Methods
static method getInstance (line 49)

gives access to the singleton

  • access: public
static Amfphp_Core_PluginManager getInstance ()
loadPlugins (line 62)

load the plugins

  • access: public
void loadPlugins (String $rootFolder, [ $pluginsConfig = null], [ $disabledPlugins = null], array $pluginConfig)
  • String $rootFolder: where to load the plugins from. Absolute path.
  • array $pluginConfig: . optional. an array containing the plugin configuration, using the plugin name as key.
  • array $disabledPlugins: . optional. an array of names of plugins to disable
  • array $pluginsConfig

Documentation generated on Thu, 24 Mar 2011 16:55:41 +0100 by phpDocumentor 1.4.3