ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ilExportSetupAgent.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21use ILIAS\Export\Setup\BuildExportOptionsMapObjective as ilExportSetupBuildOptionsMapObjective;
22use 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}
An agent that just doesn't do a thing.
Definition: NullAgent.php:35
A objective collection is a objective that is achieved once all subobjectives are achieved.
This class attempt to achieve a set of database update steps.
getMigrations()
@inheritDoc
getStatusObjective(Storage $storage)
getUpdateObjective(?Config $config=null)
@inheritdocs
getBuildObjective()
@inheritdocs
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31