A class to load and manage plugins.
Gets configuration data for plugins from XML files. Merges the installation wide and per-blog settings if applicable.
List all defined classes that are descended from Plugin. This has the effect of getting a list of loaded plugins.
An array of class names.
function pluginLoaded( |
| ) |
Determine if a specific plugin has been loaded.
plugin_name | The name of the plugin class to check. |
True if the plugin class is loaded, false otherwise.
List all the plugin files that get loaded.
An array of strings containing filenames.
Load all plugins. In particular, include()s every file in the plugins directory then ends with a .php suffix in alphabetical order. Plugins are found in the "plugins" directory under BLOG_ROOT or INSTALL_ROOT. Plugins in BLOG_ROOT take precedence. Subdirectories are not scanned.
function testFile( |
| ) |
Test if a particular plugin file exists.
plug | The name of the plugin file. |
True if the file exists in the userdata, LnBlog, or blog plugins directory, false otherwise.