PHP 클래스 Piwik\Plugins\ExamplePlugin\Updates\Updates_0_0_2

상속: extends Piwik\Updates
파일 보기 프로젝트 열기: piwik/piwik

공개 메소드들

메소드 설명
__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[]