Search:

# CWIS Developers Documentation

# PluginManager Class Reference

Manager to load and invoke plugins. More...

## Public Member Functions
| __construct ($AppFramework, $PluginDirectories)
| PluginManager class constructor.
| LoadPlugins ()
| Load and initialize plugins.
| GetErrorMessages ()
| Retrieve any error messages generated during plugin loading.
| GetPluginAttributes ()
| Retrieve info about currently loaded plugins.
| PluginEnabled ($PluginName, $NewValue=NULL)
| Get/set whether specified plugin is enabled.

List of all members.

## Detailed Description

Manager to load and invoke plugins.

Definition at line 6 of file PluginManager.php.

## Constructor & Destructor Documentation

PluginManager::__construct | ( | $ | AppFramework,
|  | $ | PluginDirectories |
| ) |  |  |

PluginManager class constructor.

Parameters:

  | AppFramework | ApplicationFramework within which plugins should run.
  | PluginDirectories | Array of names of directories containing plugins.

Definition at line 15 of file PluginManager.php.

## Member Function Documentation

PluginManager::GetErrorMessages | ( |  | ) |

Retrieve any error messages generated during plugin loading.

Returns:
  Array of arrays of error messages, indexed by plugin base (class) name.

Definition at line 175 of file PluginManager.php.

PluginManager::GetPluginAttributes | ( |  | ) |

Retrieve info about currently loaded plugins.

Returns:
  Array of arrays of plugin info, indexed by plugin base (class) name.

Definition at line 184 of file PluginManager.php.

PluginManager::LoadPlugins | ( |  | ) |

Load and initialize plugins.

Returns:
  TRUE if load was successful (no problems encountered), otherwise FALSE.

Definition at line 33 of file PluginManager.php.

References PluginEnabled().

PluginManager::PluginEnabled | ( | $ | PluginName,
|  | $ | NewValue = `NULL` |
| ) |  |  |

Get/set whether specified plugin is enabled.

Parameters:

  | PluginName | Base name of plugin.
  | NewValue | TRUE to enable, FALSE to disable. (OPTIONAL)

Returns:
  TRUE if plugin is enabled, otherwise FALSE.

Definition at line 202 of file PluginManager.php.

Referenced by LoadPlugins().

Here is the caller graph for this function:

The documentation for this class was generated from the following file:

- PluginManager.php