ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
class.ilGlossarySetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 use ILIAS\Refinery;
22 use ILIAS\Setup;
23 
27 final class ilGlossarySetupAgent implements Setup\Agent
28 {
30 
31  public function hasConfig(): bool
32  {
33  return false;
34  }
35 
37  {
38  throw new LogicException("ilGlossarySetupAgent has no config.");
39  }
40 
41  public function getInstallObjective(?Setup\Config $config = null): Setup\Objective
42  {
43  return new Setup\Objective\NullObjective();
44  }
45 
46  public function getUpdateObjective(?Setup\Config $config = null): Setup\Objective
47  {
48  return new Setup\ObjectiveCollection(
49  'Glossary',
50  false,
53  );
54  }
55 
56  public function getBuildObjective(): Setup\Objective
57  {
58  return new Setup\Objective\NullObjective();
59  }
60 
61  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
62  {
63  return new Setup\ObjectiveCollection(
64  'Glossary',
65  true,
68  );
69  }
70 
71  public function getMigrations(): array
72  {
73  return [
77  ];
78  }
79 }
hasConfig()
Does this agent require a configuration?
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
getStatusObjective(Setup\Metrics\Storage $storage)
getInstallObjective(?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
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...
getMigrations()
Get a named map of migrations available for this Agent.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
A transformation is a function from one datatype to another.
A configuration for the setup.
Definition: Config.php:26
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getUpdateObjective(?Setup\Config $config=null)