class Omeka_Plugin_Factory

Package: Plugin

Responsible for creating a set of Plugin records corresponding to plugins that have not been installed yet.

property _basePath

Base path for plugins; the plugin directory

__construct(string $basePath)
  • $basePath (string) – Plugin base directory.
getNewPlugins(array $existingPlugins)

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.