Package: Plugin\Loader
Loads plugins for any given request.
This will iterate through the plugins root directory and load all plugin.phpfiles by require()’ing them.
Plugin broker object.
Plugin INI reader object.
Plugin MVC object.
Plugins directory.
An array of all plugins (installed or not) that are currently located in the plugins/ directory.
Parameters: |
|
---|
Load a list of plugins.
Parameters: |
|
---|---|
Returns: | void |
Register a plugin so that it can be accessed by other plugins (if necessary) during the load process.
There should only be a single instance of a plugin per directory name.Registering a plugin more than once, i.e. loading a plugin again after thefirst time failed, will not cause a problem as long as the same instancewas registered.
Parameters: |
|
---|---|
Returns: | void |
Return whether a plugin is registered or not.
Parameters: |
|
---|---|
Returns: | boolean Whether the plugin is registered or not. |
Load a plugin (and make sure the plugin API is available).
To be loaded, the plugin must be installed, active, and not have a newerversion. If loaded, the plugin will attempt to first load all plugins,both required and optional, that the plugin uses. However, it will notload a plugin that it uses if that plugin is not installed and activated.
Parameters: |
|
---|---|
Returns: | void |
Determine whether or not a plugin can be loaded. To be loaded, it must meet the following criteria: - Has a plugin.php file. - Is installed. - Is active. - Meets the minimum required version of Omeka (in plugin.ini). - Is not already loaded. - Does not have a new version available.
Parameters: |
|
---|---|
Returns: | boolean |
Check whether a plugin has a bootstrap file.
Parameters: |
|
---|---|
Returns: | boolean |
Return the valid plugin class name.
Parameters: |
|
---|---|
Returns: | string |
Return the path to the plugin.php file.
Parameters: |
|
---|---|
Returns: | string |
Return the path to the plugin class file.
Parameters: |
|
---|---|
Returns: | string |
Return a list of all the plugins that have been loaded (or attempted to be loaded) thus far.
Returns: | array List of Plugin objects. |
---|
Get a plugin object by name (plugin subdirectory name).
Parameters: |
|
---|---|
Returns: | Plugin|null |