Omeka_Plugin_Installer

Package: Plugin\Installer

class Omeka_Plugin_Installer

Changes the state of any given plugin (installed/uninstalled/activated/deactivated)

property _broker

protected Omeka_Plugin_Broker

Plugin broker object.

property _loader

protected Omeka_Plugin_Loader

Plugin loader object.

__construct(Omeka_Plugin_Broker $broker, Omeka_Plugin_Loader $loader)
Parameters:
activate(Plugin $plugin)

Activate a plugin.

Parameters:
  • $plugin (Plugin) – Plugin to activate.
deactivate(Plugin $plugin)

Deactivate a plugin.

Parameters:
  • $plugin (Plugin) – Plugin to deactivate.
upgrade(Plugin $plugin)

Upgrade a plugin.

This will activate the plugin, then run the ‘upgrade’ hook.

Parameters:
  • $plugin (Plugin) – Plugin to upgrade.
install(Plugin $plugin)

Install a plugin.

This will activate the plugin, then run the ‘install’ hook.

Parameters:
  • $plugin (Plugin) – Plugin to install.
uninstall(Plugin $plugin)

Uninstall a plugin.

This will run the ‘uninstall’ hook for the given plugin, and then it will remove the entry in the DB corresponding to the plugin.

Parameters:
  • $plugin (Plugin) – Plugin to uninstall.