40 return "Migration of File-Objects to Storage service";
69 $legacy_files_dir = $irss_helper->getClientDataDir() .
"/ilFile";
75 $DIC[
'ilDB'] = $irss_helper->getDatabase();
77 $storage_configuration =
new LocalConfig($irss_helper->getClientDataDir());
81 $f->getLocal($storage_configuration),
83 self::MIGRATION_LOG_CSV
86 $this->database = $irss_helper->getDatabase();
94 if ($this->helper ===
null) {
95 $environment->
getResource(Environment::RESOURCE_ADMIN_INTERACTION)->inform(
96 "No migration possible, base-directory not found."
101 $item = $this->helper->getNext();
102 $this->runner->migrate($item);
110 $r = $this->database->query(
"SELECT COUNT(file_id) AS amount FROM file_data WHERE rid IS NULL OR rid = '';");
111 $d = $this->database->fetchObject($r);
113 return (
int)
$d->amount;
122 if (!$this->confirmed) {
123 $io = $environment->
getResource(Setup\Environment::RESOURCE_ADMIN_INTERACTION);
124 $this->confirmed = $io->confirmExplicit(
125 'The migration of File-Objects should be done in ILIAS 7 not 8, see Modules/File/classes/Setup/MISSING_MIGRATION.md, type "Understood" to proceed',
Class FlySystemFilesystemFactory.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
prepare(Environment $environment)
@inheritDoc
showConfirmation(Environment $environment)
step(Environment $environment)
@inheritDoc
getPreconditions(Environment $environment)
@inheritDoc
ilFileObjectToStorageMigrationHelper $helper
getDefaultAmountOfStepsPerRun()
@inheritDoc
getRemainingAmountOfSteps()
@inheritDoc
ilFileObjectToStorageMigrationRunner $runner
Class ilObjFileStakeholder.
Class ilResourceStorageMigrationHelper.
static getPreconditions()
for( $i=6;$i< 13;$i++) for($i=1; $i< 13; $i++) $d
An environment holds resources to be used in the setup process.
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
A migration is a potentially long lasting operation that can be broken into discrete steps.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...