CWIS Developer Documentation
|
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. | |
GetPlugin ($PluginName) | |
Retrieve specified plugin. | |
GetPluginForCurrentPage () | |
Retrieve plugin for current page (if any). | |
GetPluginAttributes () | |
Retrieve info about currently loaded plugins. | |
GetDependents ($PluginName) | |
Returns a list of plugins dependent on the specified plugin. | |
GetActivePluginList () | |
Get list of active (i.e. | |
PluginEnabled ($PluginName, $NewValue=NULL) | |
Get/set whether specified plugin is enabled. | |
UninstallPlugin ($PluginName) | |
Uninstall plugin and (optionally) delete any associated data. | |
Manager to load and invoke plugins.
Definition at line 6 of file PluginManager.php.
PluginManager::__construct | ( | $AppFramework, | |
$PluginDirectories | |||
) |
PluginManager class constructor.
AppFramework | ApplicationFramework within which plugins should run. |
PluginDirectories | Array of names of directories containing plugins. |
Definition at line 15 of file PluginManager.php.
References ApplicationFramework\ORDER_LAST.
PluginManager::GetActivePluginList | ( | ) |
Get list of active (i.e.
enabled) plugins.
Definition at line 278 of file PluginManager.php.
References PluginEnabled().
PluginManager::GetDependents | ( | $PluginName | ) |
Returns a list of plugins dependent on the specified plugin.
PluginName | Base name of plugin. |
Definition at line 258 of file PluginManager.php.
References GetPluginAttributes().
PluginManager::GetErrorMessages | ( | ) |
Retrieve any error messages generated during plugin loading.
Definition at line 205 of file PluginManager.php.
PluginManager::GetPlugin | ( | $PluginName | ) |
Retrieve specified plugin.
PluginName | Base name of plugin. |
Definition at line 215 of file PluginManager.php.
Referenced by GetPluginForCurrentPage().
PluginManager::GetPluginAttributes | ( | ) |
Retrieve info about currently loaded plugins.
Definition at line 237 of file PluginManager.php.
Referenced by GetDependents().
PluginManager::GetPluginForCurrentPage | ( | ) |
Retrieve plugin for current page (if any).
This method relies on the current page having been found within the plugin directory (usually via a "P_" prefix on the page name) via a call to the hooked FindPluginPhpFile() or FindPluginHtmlFile() methods..
Definition at line 228 of file PluginManager.php.
References GetPlugin().
PluginManager::LoadPlugins | ( | ) |
Load and initialize plugins.
Definition at line 38 of file PluginManager.php.
References PluginEnabled().
PluginManager::PluginEnabled | ( | $PluginName, | |
$NewValue = NULL |
|||
) |
Get/set whether specified plugin is enabled.
PluginName | Base name of plugin. |
NewValue | TRUE to enable, FALSE to disable. (OPTIONAL) |
Definition at line 289 of file PluginManager.php.
Referenced by GetActivePluginList(), LoadPlugins(), and UninstallPlugin().
PluginManager::UninstallPlugin | ( | $PluginName | ) |
Uninstall plugin and (optionally) delete any associated data.
PluginName | Base name of plugin. |
Definition at line 307 of file PluginManager.php.
References PluginEnabled().