3declare(strict_types=1);
30 return 'ilObjCloudModule Data Removal. Attention, this deletes all Data of the Cloud Module from the Repository';
35 return Migration::INFINITE;
40 if ($this->db->fetchObject($this->getCloudReferencesQuery())) {
63 $this->db = $environment->
getResource(Environment::RESOURCE_DATABASE);
68 while ($result = $this->db->fetchObject($this->getCloudReferencesQuery())) {
69 $cloud_object =
new ilObjCloud((
int) $result->ref_id);
70 $cloud_object->delete();
76 return $this->db->query(
"
78 FROM object_data, object_reference
79 WHERE object_data.type = 'cld' AND object_data.obj_id = object_reference.obj_id");
static init(string $a_type)
Init context by type.
static initILIAS()
ilias initialisation
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getDefaultAmountOfStepsPerRun()
Tell the default amount of steps to be executed for one run of the migration.
getPreconditions(Environment $environment)
step(Environment $environment)
Run one step of the migration.
getCloudReferencesQuery()
prepare(Environment $environment)
Prepare the migration by means of some environment.
getRemainingAmountOfSteps()
Count up how many "things" need to be migrated.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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...