ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
class.ilLearningModuleSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 use ILIAS\Setup;
20 use ILIAS\Refinery;
21 use ILIAS\UI;
22 
27 {
29 
33  public function hasConfig(): bool
34  {
35  return false;
36  }
37 
42  {
43  throw new \LogicException("Agent has no config.");
44  }
45 
49  public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
50  {
52  'lm_data',
54  );
55  }
56 
60  public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
61  {
62  return new Setup\Objective\NullObjective();
63  }
64 
68  public function getBuildObjective(): Setup\Objective
69  {
70  return new Setup\Objective\NullObjective();
71  }
72 
76  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
77  {
78  return new Setup\Objective\NullObjective();
79  }
80 
84  public function getMigrations(): array
85  {
86  return [];
87  }
88 }
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)
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.if Agent has no Config ...
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Storage is simple key/value store without further schema definition.
Definition: Storage.php:29
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.if Config does not match the Agent...
hasConfig()
Does this agent require a configuration?
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
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(?Setup\Config $config=null)