ILIAS  trunk Revision v11.0_alpha-1731-gff9cd7e2bd3
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilHTLMSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Setup;
22 use ILIAS\Refinery;
24 
25 final class ilHTLMSetupAgent implements Setup\Agent
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  {
46  return new Setup\ObjectiveCollection(
47  'HTML Learning Module',
48  true,
51  )
52  );
53  }
54 
56  {
57  return new Setup\Objective\NullObjective();
58  }
59 
60  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
61  {
62  return new Setup\Objective\NullObjective();
63  }
64 
65  public function getMigrations(): array
66  {
67  return [
68  new ilHTLMMigration()
69  ];
70  }
71 
72  public function getBuildObjective(): Objective
73  {
74  return new Setup\Objective\NullObjective();
75  }
76 
77 }
getInstallObjective(?Setup\Config $config=null)
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)
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
getMigrations()
Get a named map of migrations available for this Agent.
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
Storage is simple key/value store without further schema definition.
Definition: Storage.php:29
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
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.
hasConfig()
Does this agent require a configuration?
A configuration for the setup.
Definition: Config.php:26
getStatusObjective(Setup\Metrics\Storage $storage)