ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Agent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
30 use ILIAS\Export\Setup\DBUpdateSteps10 as ilExportSetupDBUpdateSteps10;
31 use ILIAS\Export\Setup\FilesToIRSSMigration as ilExportSetupFilesToIRSSMigration;
32 use ILIAS\Export\Setup\BuildExportOptionsMapObjective as ilExportSetupBuildOptionsMapObjective;
33 
34 class Agent extends NullAgent
35 {
36  public function getUpdateObjective(?Config $config = null): Objective
37  {
38  return new ObjectiveCollection(
39  "Export",
40  false,
41  new ilDatabaseUpdateStepsExecutedObjective(new ilExportSetupDBUpdateSteps10())
42  );
43  }
44 
45  public function getStatusObjective(Storage $storage): Objective
46  {
47  return new ObjectiveCollection(
48  'Component Export',
49  true,
50  new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilExportSetupDBUpdateSteps10())
51  );
52  }
53 
54  public function getMigrations(): array
55  {
56  return [new ilExportSetupFilesToIRSSMigration()];
57  }
58 
59  public function getBuildObjective(): Objective
60  {
61  return new ilExportSetupBuildOptionsMapObjective();
62  }
63 }
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
getUpdateObjective(?Config $config=null)
Definition: Agent.php:36
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getStatusObjective(Storage $storage)
Definition: Agent.php:45
A configuration for the setup.
Definition: Config.php:26