Piwik\Updater\Migration\Plugin\

Factory

Provides plugin migrations.

Methods

The class defines the following methods:

  • activate() — Activates the given plugin during an update.
  • deactivate() — Deactivates the given plugin during an update.
  • uninstall() — Uninstalls the given plugin during an update.

activate()

Activates the given plugin during an update.

If the plugin is already activated or if any other error occurs it will be ignored.

Signature

  • It accepts the following parameter(s):

    • $pluginName (string) —
  • It returns a Piwik\Updater\Migration\Plugin\Activate value.

deactivate()

Deactivates the given plugin during an update.

If the plugin is already deactivated or if any other error occurs it will be ignored.

Signature

  • It accepts the following parameter(s):

    • $pluginName (string) —
  • It returns a Piwik\Updater\Migration\Plugin\Deactivate value.

uninstall()

Uninstalls the given plugin during an update.

If the plugin is still active or if any other error occurs it will be ignored.

Signature

  • It accepts the following parameter(s):

    • $pluginName (string) —
  • It returns a Piwik\Updater\Migration\Plugin\Uninstall value.