Custom
This documentation is for an outdated Matomo version.
Click here if you want to read this article for the latest version.
Click here if you want to read this article for the latest version.
Piwik\Updater\Migration\
Custom
Create a custom migration that can execute any callback.
Methods
The class defines the following methods:
exec()— Executes the migration.__toString()— Get a description of what the migration actually does.shouldIgnoreError()— Decides whether an error should be ignored or not.__construct()
exec()
Executes the migration.
Signature
- It returns a
voidvalue.
__toString()
Get a description of what the migration actually does. For example "Activate plugin $plugin" or "SELECT * FROM table".
Signature
- It returns a
stringvalue.
shouldIgnoreError()
Decides whether an error should be ignored or not.
Signature
It accepts the following parameter(s):
$exception(Exception) —
It returns a
boolvalue.
__construct()
Signature
It accepts the following parameter(s):
$callback$toString