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 
21 namespace ILIAS\Setup;
22 
24 use ILIAS\UI;
25 
29 interface Agent
30 {
34  public function hasConfig(): bool;
35 
43 
52  public function getInstallObjective(?Config $config = null): Objective;
53 
70  public function getUpdateObjective(?Config $config = null): Objective;
71 
77  public function getBuildObjective(): Objective;
78 
89  public function getStatusObjective(Metrics\Storage $storage): Objective;
90 
98  public function getMigrations(): array;
99 
109  public function getNamedObjectives(?Config $config = null): array;
110 }
getStatusObjective(Metrics\Storage $storage)
Get the objective to be achieved when status is requested.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
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)
Gets all named objectives The keys of the returned array are the commands.
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getUpdateObjective(?Setup\Config $config=null)
Definition: class.Agent.php:28
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
hasConfig()
Does this agent require a configuration?
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.
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.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A configuration for the setup.
Definition: Config.php:26