ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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,
37  );
38  }
39 
40  public function getMigrations(): array
41  {
42  return [
45  ];
46  }
47 
48  public function hasConfig(): bool
49  {
50  return false;
51  }
52 
54  {
55  throw new LogicException(self::class . " has no config.");
56  }
57 
58  public function getInstallObjective(Config $config = null): Objective
59  {
60  return new NullObjective();
61  }
62 
64  {
65  return new NullObjective();
66  }
67 
68  public function getStatusObjective(Storage $storage): Objective
69  {
70  return new NullObjective();
71  }
72 
73  public function getNamedObjectives(?Config $config = null): array
74  {
75  return [];
76  }
77 
78  public function getBuildObjective(): Objective
79  {
80  return new NullObjective();
81  }
82 }
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...
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...
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.