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

  • $basePath (string) – Plugin base directory.

Retrieve all new plugins in the plugin directory.

  • $existingPlugins (array) – An array of existing Plugin objects.

array An array of Plugin objects for the new plugins.


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.