ILIAS
trunk Revision v11.0_alpha-1749-g1a06bdef097
|
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... | |
getImageFullPath (string $img, int $id) | |
Protected Member Functions | |
getThumbnailImagePath (string $img, int $id) | |
getOrgImagePath (string $img, int $id) | |
getLegacyPath (int $a_id) | |
Protected Attributes | |
ilDBInterface | $db |
Additional Inherited Members | |
![]() | |
const | INFINITE = -1 |
Definition at line 25 of file class.ilPollImagesMigration.php.
ilPollImagesMigration::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.
Implements ILIAS\Setup\Migration.
Definition at line 34 of file class.ilPollImagesMigration.php.
ilPollImagesMigration::getImageFullPath | ( | string | $img, |
int | $id | ||
) |
Definition at line 105 of file class.ilPollImagesMigration.php.
References getLegacyPath().
Referenced by step().
ilPollImagesMigration::getLabel | ( | ) |
Implements ILIAS\Setup\Migration.
Definition at line 29 of file class.ilPollImagesMigration.php.
|
protected |
Definition at line 120 of file class.ilPollImagesMigration.php.
References $path, CLIENT_WEB_DIR, and ilFileSystemAbstractionStorage\createPathFromId().
Referenced by getImageFullPath(), getOrgImagePath(), and getThumbnailImagePath().
|
protected |
Definition at line 115 of file class.ilPollImagesMigration.php.
References getLegacyPath().
Referenced by step().
ilPollImagesMigration::getPreconditions | ( | Environment | $environment | ) |
Objectives the migration depend on.
UnachievableException | if the objective is not achievable |
Implements ILIAS\Setup\Migration.
Definition at line 39 of file class.ilPollImagesMigration.php.
ilPollImagesMigration::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
Implements ILIAS\Setup\Migration.
Definition at line 96 of file class.ilPollImagesMigration.php.
References $res.
|
protected |
Definition at line 110 of file class.ilPollImagesMigration.php.
References getLegacyPath().
Referenced by step().
ilPollImagesMigration::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.
Implements ILIAS\Setup\Migration.
Definition at line 49 of file class.ilPollImagesMigration.php.
References ILIAS\Setup\Environment\getResource().
ilPollImagesMigration::step | ( | Environment | $environment | ) |
Run one step of the migration.
Implements ILIAS\Setup\Migration.
Definition at line 55 of file class.ilPollImagesMigration.php.
References $id, $res, getImageFullPath(), getOrgImagePath(), getThumbnailImagePath(), ILIAS\Repository\int(), null, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
protected |
Definition at line 27 of file class.ilPollImagesMigration.php.