ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
class.ilDataCollectionSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Setup;
27 
29 {
30  public function getUpdateObjective(?Config $config = null): Objective
31  {
32  return new Setup\ObjectiveCollection(
33  'DataCollection Update',
34  true,
38  );
39  }
40 
41  public function getMigrations(): array
42  {
43  return [
46  ];
47  }
48 
49  public function hasConfig(): bool
50  {
51  return false;
52  }
53 
55  {
56  throw new LogicException(self::class . " has no config.");
57  }
58 
59  public function getInstallObjective(?Config $config = null): Objective
60  {
61  return new NullObjective();
62  }
63 
65  {
66  return new NullObjective();
67  }
68 
69  public function getStatusObjective(Storage $storage): Objective
70  {
71  return new NullObjective();
72  }
73 
74  public function getNamedObjectives(?Config $config = null): array
75  {
76  return [];
77  }
78 
79  public function getBuildObjective(): Objective
80  {
81  return new NullObjective();
82  }
83 }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
hasConfig()
Does this agent require a configuration?
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
A non-objective, nothing to do to achieve it...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getMigrations()
Get a named map of migrations available for this Agent.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.