ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\Setup\Migration Interface Reference

A migration is a potentially long lasting operation that can be broken into discrete steps. More...

+ Inheritance diagram for ILIAS\Setup\Migration:
+ Collaboration diagram for ILIAS\Setup\Migration:

Public Member Functions

 getLabel ()
 
 getDefaultAmountOfStepsPerRun ()
 Tell the default amount of steps to be executed for one run of the migration. More...
 
 getPreconditions (Environment $environment)
 Objectives the migration depend on. More...
 
 prepare (Environment $environment)
 Prepare the migration by means of some environment. More...
 
 step (Environment $environment)
 Run one step of the migration. More...
 
 getRemainingAmountOfSteps ()
 Count up how many "things" need to be migrated. More...
 

Data Fields

const INFINITE = -1
 

Detailed Description

A migration is a potentially long lasting operation that can be broken into discrete steps.

Other than database updates, it is supposed to run in the background, even when the installation is online again.

Definition at line 12 of file Migration.php.

Member Function Documentation

◆ getDefaultAmountOfStepsPerRun()

ILIAS\Setup\Migration::getDefaultAmountOfStepsPerRun ( )

Tell the default amount of steps to be executed for one run of the migration.

Return Migration::INFINITE if all units should be migrated at once.

Returns
int

Implemented in ilStorageHandlerV1Migration.

◆ getLabel()

ILIAS\Setup\Migration::getLabel ( )
Returns
string - a meaningful and concise description for your migration.

Implemented in ilStorageHandlerV1Migration.

◆ getPreconditions()

ILIAS\Setup\Migration::getPreconditions ( Environment  $environment)

Objectives the migration depend on.

Exceptions
UnachievableExceptionif the objective is not achievable
Returns
Objective[]

Implemented in ilStorageHandlerV1Migration.

Referenced by ILIAS\Setup\CLI\MigrateCommand\prepareEnvironmentForMigration().

+ Here is the caller graph for this function:

◆ getRemainingAmountOfSteps()

ILIAS\Setup\Migration::getRemainingAmountOfSteps ( )

Count up how many "things" need to be migrated.

This helps the admin to decide how big he can create the steps and also how long a migration takes

Returns
int

Implemented in ilStorageHandlerV1Migration.

◆ prepare()

ILIAS\Setup\Migration::prepare ( Environment  $environment)

Prepare the migration by means of some environment.

This is not supposed to modify the environment, but will be run to prime the migration object to run step and getRemainingAmountOfSteps afterwards.

Implemented in ilStorageHandlerV1Migration.

◆ step()

ILIAS\Setup\Migration::step ( Environment  $environment)

Run one step of the migration.

Referenced by ilStorageHandlerV1Migration\prepare().

+ Here is the caller graph for this function:

Field Documentation

◆ INFINITE


The documentation for this interface was generated from the following file: