Class MvBlog_pluginmgr

Description

Class that holds methods to manage plugins etc.

Located in /common/plugins.php (line 24)


	
			
Variable Summary
string $plugindir
array $plugins
Method Summary
MvBlog_pluginmgr __construct (string $plugindir,  &$mvblog)
bool activate_plugin (string $plugin)
bool deactivate_plugin (string $plugin)
void run_hooks ( $type,  $data)
void set_active_plugins (array $active_plugins)
Variables
string $plugindir = "" (line 36)
  • var: The directory that holds all the plugins
  • access: public
array $plugins = array() (line 32)
  • var: Contains all loaded plugin objects
  • access: public
Methods
Constructor __construct (line 45)

Load all plugins into plugins array

  • access: public
MvBlog_pluginmgr __construct (string $plugindir,  &$mvblog)
  • string $plugindir: The dir to load
  • &$mvblog
activate_plugin (line 84)

Activate givin plugin If the plugin is not loaded, do nothing

  • return: true on success, false on failure
  • access: public
bool activate_plugin (string $plugin)
  • string $plugin: The plugin name to activate
deactivate_plugin (line 102)

deActivate givin plugin If the plugin is not loaded, do nothing

  • return: true on success, false on failure
  • access: public
bool deactivate_plugin (string $plugin)
  • string $plugin: The plugin name to deactivate
get_active_plugins (line 129)

Return array of active plugins

  • access: public
void get_active_plugins ()
run_hooks (line 142)

Loop through all the plugins and run functions registered to given hooktype

  • access: public
void run_hooks ( $type,  $data)
  • $type
  • $data
set_active_plugins (line 119)

Activate plugins using an external array.

This can be usefull if you store your activate plugins in a database

  • access: public
void set_active_plugins (array $active_plugins)
  • array $active_plugins: Array with plugin names to activate

Documentation generated on Fri, 28 Dec 2007 13:17:42 +0100 by phpDocumentor 1.4.1