ILIAS  trunk Revision v11.0_alpha-1843-g9e1fad99175
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilADNAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
29 
34 class ilADNAgent implements Agent
35 {
36  public function __construct(protected Factory $refinery)
37  {
38  }
39 
40 
41  public function hasConfig(): bool
42  {
43  return false;
44  }
45 
46 
48  {
49  throw new \LogicException("Agent has no config.");
50  }
51 
52 
53  public function getInstallObjective(?Config $config = null): Objective
54  {
55  return new NullObjective();
56  }
57 
58 
59  public function getUpdateObjective(?Config $config = null): Objective
60  {
61  return new ObjectiveCollection(
62  "",
63  true,
66  )
67  );
68  }
69 
70 
71  public function getBuildObjective(): Objective
72  {
73  return new NullObjective();
74  }
75 
76 
77  public function getStatusObjective(Storage $storage): Objective
78  {
80  }
81 
82 
83  public function getMigrations(): array
84  {
85  return [];
86  }
87 
88  public function getNamedObjectives(?Config $config = null): array
89  {
90  return [];
91  }
92 }
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
A objective collection is a objective that is achieved once all subobjectives are achieved...
hasConfig()
Does this agent require a configuration?
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getNamedObjectives(?Config $config=null)
getStatusObjective(Storage $storage)
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getInstallObjective(?Config $config=null)
A non-objective, nothing to do to achieve it...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Builds data types.
Definition: Factory.php:35
getMigrations()
Get a named map of migrations available for this Agent.
getUpdateObjective(?Config $config=null)
A transformation is a function from one datatype to another.
__construct(protected Factory $refinery)
A configuration for the setup.
Definition: Config.php:26