ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilCmiXapiSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 use ILIAS\Setup;
22 use ILIAS\Refinery;
23 use ILIAS\UI;
24 
26 {
28 
29  public function hasConfig(): bool
30  {
31  return false;
32  }
33 
35  {
36  throw new LogicException("Agent has no config.");
37  }
38 
39  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
40  {
41  return new Setup\Objective\NullObjective();
42  }
43 
44  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
45  {
48  );
49  }
50 
51  public function getBuildObjective(): Setup\Objective
52  {
53  return new Setup\Objective\NullObjective();
54  }
55 
56  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
57  {
58  return new Setup\Objective\NullObjective();
59  }
60 
64  public function getMigrations(): array
65  {
66  return [];
67  }
68 }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getUpdateObjective(Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
hasConfig()
Does this agent require a configuration?
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
getInstallObjective(Setup\Config $config=null)
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
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.