ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
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... | |
getRevisionNameCallback () | |
Private Member Functions | |
getImagePath (int $id, string $image) | |
getFilePath (int $a_id) | |
createLegacyPathSegmentForBadgeId (int $id) | |
inform (string $text, bool $force=false) | |
error (string $text) | |
Private Attributes | |
const | TABLE_NAME = 'badge_badge' |
ilResourceStorageMigrationHelper | $helper |
IOWrapper | $io = null |
Additional Inherited Members | |
![]() | |
const | INFINITE = -1 |
Definition at line 26 of file class.ilBadgesFilesMigration.php.
|
private |
Definition at line 125 of file class.ilBadgesFilesMigration.php.
Referenced by getFilePath().
|
private |
Definition at line 176 of file class.ilBadgesFilesMigration.php.
References null.
Referenced by step().
ilBadgesFilesMigration::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 38 of file class.ilBadgesFilesMigration.php.
|
private |
Definition at line 120 of file class.ilBadgesFilesMigration.php.
References CLIENT_ID, createLegacyPathSegmentForBadgeId(), and ILIAS_WEB_DIR.
Referenced by getImagePath().
|
private |
Definition at line 112 of file class.ilBadgesFilesMigration.php.
References getFilePath().
Referenced by step().
ilBadgesFilesMigration::getLabel | ( | ) |
Implements ILIAS\Setup\Migration.
Definition at line 33 of file class.ilBadgesFilesMigration.php.
ilBadgesFilesMigration::getPreconditions | ( | Environment | $environment | ) |
Objectives the migration depend on.
UnachievableException | if the objective is not achievable |
Implements ILIAS\Setup\Migration.
Definition at line 43 of file class.ilBadgesFilesMigration.php.
References ilResourceStorageMigrationHelper\getPreconditions().
ilBadgesFilesMigration::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 147 of file class.ilBadgesFilesMigration.php.
References $res.
ilBadgesFilesMigration::getRevisionNameCallback | ( | ) |
Definition at line 160 of file class.ilBadgesFilesMigration.php.
|
private |
Definition at line 167 of file class.ilBadgesFilesMigration.php.
References null.
Referenced by step().
ilBadgesFilesMigration::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 48 of file class.ilBadgesFilesMigration.php.
References $io, and ILIAS\Setup\Environment\getResource().
ilBadgesFilesMigration::step | ( | Environment | $environment | ) |
Run one step of the migration.
Implements ILIAS\Setup\Migration.
Definition at line 60 of file class.ilBadgesFilesMigration.php.
References Vendor\Package\$e, $id, $res, error(), getImagePath(), if, inform(), ILIAS\Repository\int(), null, ilDBConstants\T_INTEGER, and ilDBConstants\T_TEXT.
|
private |
Definition at line 30 of file class.ilBadgesFilesMigration.php.
Definition at line 31 of file class.ilBadgesFilesMigration.php.
Referenced by prepare().
|
private |
Definition at line 28 of file class.ilBadgesFilesMigration.php.