Omeka_Plugin_BrokerPlugin Broker for Omeka.
Plugin Broker for Omeka. This handles installation, loading and calling hooks for plugins. The syntax for activating plugin hooks on the Broker is as simple as calling it as a method on the broker. For example, $broker->add_action_contexts($controller) would call the 'add_action_contexts' on all plugins, and it would provide the controller object as the first argument to all implementations of that hook.
Located in /application/libraries/Omeka/Plugin/Broker.php (line 21)
array
$_active
= array() (line 52)
An array of plugin directory names for currently activated plugins
An array of plugin directory names for currently activated plugins
array
$_all
= array() (line 67)
An array of all plugin directory names for plugins (installed or not) that are currently located
An array of all plugin directory names for plugins (installed or not) that are currently located in the plugins/ directory
mixed
$_basePath
= array() (line 23)
array
$_callbacks
= array() (line 37)
Array of hooks that have been implemented for plugins.
Array of hooks that have been implemented for plugins.
string
$_current
(line 97)
The directory name of the current plugin (used for calling hooks)
The directory name of the current plugin (used for calling hooks)
Database connection to use when interacting with the database
Database connection to use when interacting with the database
array
$_has_new_version
= array() (line 90)
A list of plugin directory names that have a new version of the plugin according to the plugin.
A list of plugin directory names that have a new version of the plugin according to the plugin.ini file
array
$_installed
= array() (line 45)
An array of plugin directory names for plugins that have been installed (but not necessarily activated and not necessarily have the plugin files).
An array of plugin directory names for plugins that have been installed (but not necessarily activated and not necessarily have the plugin files).
array
$_loaded
= array() (line 59)
An array of all plugin directory names for plugins that have been loaded
An array of all plugin directory names for plugins that have been loaded
array
$_media
= array('callbacks'=>array(),'options'=>array()) (line 104)
array
$_optional
= array() (line 75)
An associative array of all plugin directory names for plugins that are used optionally by another plugin.
An associative array of all plugin directory names for plugins that are used optionally by another plugin. The key is a pluginDirName and the value is an array of the plugin directory names of its optional plugins
mixed
$_pluginViewDirs
= array() (line 107)
array
$_required
= array() (line 83)
An associative array of all plugin directory names for plugins that are required by another plugin.
An associative array of all plugin directory names for plugins that are required by another plugin. The key is a pluginDirName and the value is an array of the plugin directory names of its required plugins
Activates the plugin
Activates the plugin
Set up the following directory structure for plugins: controllers/ models/ libraries/ views/ admin/ public/ shared/ This also adds these folders to the correct include paths.
Set up the following directory structure for plugins: controllers/ models/ libraries/ views/ admin/ public/ shared/ This also adds these folders to the correct include paths.
This will make an entire directory of controllers available to the front controller.
This will make an entire directory of controllers available to the front controller. This has to use addControllerDirectory() instead of addModuleDirectory() because module names are case-sensitive and module directories need to be lowercased to conform to Zend's weird naming conventions.
Check if the plugin is active, then enable the hook for it
Check if the plugin is active, then enable the hook for it
Adds a plugin hook to display files of a specific MIME type in a certain way.
Adds a plugin hook to display files of a specific MIME type in a certain way. This allows plugins to hook directly into the Omeka_View_Helper_Media class, so that plugins can override/define ways of displaying specific files. The most obvious example of where this would come in handy is to define ways of displaying uncommon files, such as QTVR, or novel ways of displaying more common files, such as using iPaper to display PDFs. The advantage is seemless integration with the themes, rather than forcing theme designers to use plugin-specific API calls in their themes.
used by the add_theme_pages() helper to create a list of directories that can store static pages that integrate into the themes
used by the add_theme_pages() helper to create a list of directories that can store static pages that integrate into the themes
Configures the plugin
Configures the plugin
Deactivates the plugin
Deactivates the plugin
Returns an array of all of the plugin directory names in the plugin directory
Returns an array of all of the plugin directory names in the plugin directory
Gets the hook for a plugin
Gets the hook for a plugin
Retrieve a list of all media display callbacks that are defined by
Retrieve a list of all media display callbacks that are defined by plugins. Currently called only within Omeka_View_Helper_Media
Return an array of plugin directory names for the plugins that have not been installed yet
Return an array of plugin directory names for the plugins that have not been installed yet
Returns an array of the plugin directory names for the plugins that the plugin optionally uses
Returns an array of the plugin directory names for the plugins that the plugin optionally uses
Returns the path to the plugin.
Returns the path to the plugin.php file
Returns the path to the plugin.
Returns the path to the plugin.ini file
Returns a value in plugin. Will return a null value if no value can be found in the ini file for the key.
Returns a value in plugin.ini for a key Will return a null value if no value can be found in the ini file for the key.
Returns an array of the plugin directory names for the plugins that the plugin requires
Returns an array of the plugin directory names for the plugins that the plugin requires
Return whether a plugin has a newer version in the plugin.
Return whether a plugin has a newer version in the plugin.ini file than the version in the database.
Returns whether a plugin has a plugin.
Returns whether a plugin has a plugin.php file
Returns whether a plugin has a plugin.
Returns whether a plugin has a plugin.ini file
Installs the plugin
Installs the plugin
Returns whether a plugin is active or not
Returns whether a plugin is active or not
Returns whether a plugin is installed or not
Returns whether a plugin is installed or not
Returns whether a plugin is loaded or not
Returns whether a plugin is loaded or not
Loads a plugin (and make sure the plugin API is available) To be loaded, the plugin must be installed, active, and does not have a newer version.
Loads a plugin (and make sure the plugin API is available) To be loaded, the plugin must be installed, active, and does not have a newer version. If loaded, the plugin will attempt to first load all plugins, both required and optional, that the plugin uses. However, it will not load a plugin that it uses, if that plugin is not installed and activated
Load all active plugins (and make sure the plugin API is available)
Load all active plugins (and make sure the plugin API is available)
Returns whether the current version of Omeka is greater than or equal to the minimum version required by the plugin.
Returns whether the current version of Omeka is greater than or equal to the minimum version required by the plugin.
Returns whether the current version of Omeka is greater than or equal to the minimum version required by the plugin.
Returns whether the current version of Omeka is greater than or equal to the minimum version required by the plugin.
The plugin helper functions do not have any way of determining what plugin to is currently in focus. allow the broker to know how to delegate to specific plugins if necessary.
The plugin helper functions do not have any way of determining what plugin to is currently in focus. These get/setCurrentPluginDirName methods allow the broker to know how to delegate to specific plugins if necessary.
Uninstall hook for plugins.
Uninstall hook for plugins. This will run the 'uninstall' hook for the given plugin, and then it will remove the entry in the DB corresponding to the plugin.
Upgrades the plugin
Upgrades the plugin
Retrieve the module name for the plugin (based on the directory name of the plugin).
Retrieve the module name for the plugin (based on the directory name of the plugin).
This handles dispatching all plugin hooks.
This handles dispatching all plugin hooks. Check for delegating to other classes that handle plugin API stuff first, i.e. Omeka_Plugin_Filters etc.
Documentation generated on Thu, 15 Oct 2009 15:35:55 -0400 by phpDocumentor 1.4.2