ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
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 
26 use ILIAS\Setup;
30 
34 class Agent implements Setup\Agent
35 {
36  public function getBuildObjective(): Objective
37  {
38  return new ObjectiveCollection(
39  'File StreamDelivery Artifacts',
40  true,
43  // new BaseDirObjective() // removed objective since it's not possible to run it in some environments
44  );
45  }
46 
47  public function getNamedObjectives(?Config $config = null): array
48  {
49  return [];
50  }
51 
52  public function hasConfig(): bool
53  {
54  return false;
55  }
56 
58  {
59  throw new LogicException("No Config");
60  }
61 
62  public function getInstallObjective(?Config $config = null): Objective
63  {
64  return new DeliveryMethodObjective();
65  }
66 
67  public function getUpdateObjective(?Config $config = null): Objective
68  {
69  return new DeliveryMethodObjective();
70  }
71 
72  public function getStatusObjective(Storage $storage): Objective
73  {
74  return new NullObjective();
75  }
76 
77  public function getMigrations(): array
78  {
79  return [];
80  }
81 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
getStatusObjective(Storage $storage)
Definition: Agent.php:72
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getInstallObjective(?Config $config=null)
Definition: Agent.php:62
hasConfig()
Does this agent require a configuration?
Definition: Agent.php:52
getUpdateObjective(?Config $config=null)
Definition: Agent.php:67
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
Definition: Agent.php:57
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.
Definition: Agent.php:77
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Definition: Agent.php:36
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.
getNamedObjectives(?Config $config=null)
Definition: Agent.php:47
A configuration for the setup.
Definition: Config.php:26