ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
ilExportSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Export\Setup\BuildExportOptionsMapObjective as ilExportSetupBuildOptionsMapObjective;
22 use ILIAS\Export\Setup\DBUpdateSteps10 as ilExportSetupDBUpdateSteps10;
28 
30 {
31  public function getUpdateObjective(?Config $config = null): Objective
32  {
33  return new ObjectiveCollection(
34  "Export",
35  false,
36  new ilDatabaseUpdateStepsExecutedObjective(new ilExportSetupDBUpdateSteps10())
37  );
38  }
39 
40  public function getStatusObjective(Storage $storage): Objective
41  {
42  return new ObjectiveCollection(
43  'Component Export',
44  true,
45  new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilExportSetupDBUpdateSteps10())
46  );
47  }
48 
49  public function getMigrations(): array
50  {
51  return [new ilExportFilesToIRSSMigration()];
52  }
53 
54  public function getBuildObjective(): Objective
55  {
56  return new ilExportSetupBuildOptionsMapObjective();
57  }
58 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
An agent that just doesn&#39;t do a thing.
Definition: NullAgent.php:34
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getStatusObjective(Storage $storage)
getUpdateObjective(?Config $config=null)
A configuration for the setup.
Definition: Config.php:26