Omeka_Plugin_Factory¶
Package: Plugin
- class Omeka_Plugin_Factory¶
Responsible for creating a set of Plugin records corresponding to plugins that have not been installed yet.
- property _basePath¶
protected string
Base path for plugins; the plugin directory
- __construct($basePath)¶
Parameters: - $basePath (string) – Plugin base directory.
- getNewPlugins($existingPlugins)¶
Retrieve all new plugins in the plugin directory.
Parameters: - $existingPlugins (array) – An array of existing Plugin objects.
Returns: array An array of Plugin objects for the new plugins.
- _getDirectoryList()¶
Retrieve an array of all the plugins in the plugin directory. A plugin is considered to be present when a directory includes a plugin.php file or has a valid plugin class.
Returns: array A list of valid plugin directory names.