ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
Agent.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
5namespace ILIAS\Setup;
6
7use ILIAS\UI;
9
13interface Agent
14{
18 public function hasConfig() : bool;
19
27 public function getConfigInput(Config $config = null) : UI\Component\Input\Field\Input;
28
36
42 public function getInstallObjective(Config $config = null) : Objective;
43
49 public function getUpdateObjective(Config $config = null) : Objective;
50
57}
An exception for terminatinating execution or to throw for unit testing.
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:14
hasConfig()
Does this agent require a configuration?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getInstallObjective(Config $config=null)
Get the goals the agent wants to achieve on setup.
getBuildArtifactObjective()
Get the goal the agent wants to achieve to build artifacts.
getUpdateObjective(Config $config=null)
Get the goal the agent wants to achieve on update.
getConfigInput(Config $config=null)
Agents must provide an input to set the configuration if they have a configuration.
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
A component is the most general form of an entity in the UI.
Definition: Component.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Class Factory.