PHP Класс Piwik\Plugins\ExamplePlugin\Updates\Updates_0_0_2

Наследование: extends Piwik\Updates
Показать файл Открыть проект

Открытые методы

Метод Описание
__construct ( Factory $factory )
doUpdate ( Updater $updater ) Perform the incremental version update.
getMigrations ( Updater $updater ) : Db[] Return database migrations to be executed in this update.

Описание методов

__construct() публичный Метод

public __construct ( Factory $factory )
$factory Piwik\Updater\Migration\Factory

doUpdate() публичный Метод

This method should perform all updating logic. If you define queries in the getMigrations() method, you must call {@link Updater::executeMigrations()} here.
public doUpdate ( Updater $updater )
$updater Piwik\Updater

getMigrations() публичный Метод

Database migrations should be defined here, instead of in doUpdate(), since this method is used in the core:update command when displaying the queries an update will run. If you execute migrations directly in doUpdate(), they won't be displayed to the user. Migrations will be executed in the order as positioned in the returned array.
public getMigrations ( Updater $updater ) : Db[]
$updater Piwik\Updater
Результат Piwik\Updater\Migration\Db[]