◆ getDefaultAmountOfStepsPerRun()
ilFileObjectToStorageMigration::getDefaultAmountOfStepsPerRun |
( |
| ) |
|
◆ getLabel()
ilFileObjectToStorageMigration::getLabel |
( |
| ) |
|
◆ getPreconditions()
ilFileObjectToStorageMigration::getPreconditions |
( |
Environment |
$environment | ) |
|
◆ getRemainingAmountOfSteps()
ilFileObjectToStorageMigration::getRemainingAmountOfSteps |
( |
| ) |
|
Definition at line 108 of file class.ilFileObjectToStorageMigration.php.
References $d.
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;
for($i=6; $i< 13; $i++) for($i=1; $i< 13; $i++) $d
◆ prepare()
ilFileObjectToStorageMigration::prepare |
( |
Environment |
$environment | ) |
|
Definition at line 62 of file class.ilFileObjectToStorageMigration.php.
References $DIC, and Vendor\Package\$f.
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();
Class ilObjFileStakeholder.
Class FlySystemFilesystemFactory.
Class ilResourceStorageMigrationHelper.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ showConfirmation()
ilFileObjectToStorageMigration::showConfirmation |
( |
Environment |
$environment | ) |
|
|
protected |
- Parameters
-
- Returns
- void
Definition at line 120 of file class.ilFileObjectToStorageMigration.php.
References ILIAS\Setup\Environment\getResource().
Referenced by step().
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',
getResource(string $id)
Consumers of this method should check if the result is what they expect, e.g.
◆ step()
ilFileObjectToStorageMigration::step |
( |
Environment |
$environment | ) |
|
◆ $confirmed
bool ilFileObjectToStorageMigration::$confirmed = false |
|
private |
◆ $database
◆ $helper
◆ $prepared
bool ilFileObjectToStorageMigration::$prepared = false |
|
protected |
◆ $runner
◆ FILE_PATH_REGEX
const ilFileObjectToStorageMigration::FILE_PATH_REGEX = '/.*\/file_([\d]*)$/' |
|
private |
◆ MIGRATION_LOG_CSV
const ilFileObjectToStorageMigration::MIGRATION_LOG_CSV = "migration_log.csv" |
The documentation for this class was generated from the following file: