ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
class.ilBibliographicSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
19 use ILIAS\Refinery;
20 use ILIAS\Setup;
21 
26 final class ilBibliographicSetupAgent implements Setup\Agent
27 {
29 
33  public const COMPONENT_DIR = 'bibl';
34 
38  public function hasConfig(): bool
39  {
40  return false;
41  }
42 
47  {
48  throw new LogicException("ilBibliographicSetupAgent has no config.");
49  }
50 
54  public function getInstallObjective(Setup\Config $config = null): Setup\Objective
55  {
57  self::COMPONENT_DIR,
59  );
60  }
61 
65  public function getUpdateObjective(Setup\Config $config = null): Setup\Objective
66  {
67  return new Setup\ObjectiveCollection('Setup Bibliografic directories and database', true, ...[
69  new ilBibliograficDB80()
70  )
71  ]);
72  }
73 
77  public function getBuildObjective(): Setup\Objective
78  {
79  return new Setup\Objective\NullObjective();
80  }
81 
85  public function getStatusObjective(Setup\Metrics\Storage $storage): Setup\Objective
86  {
88  }
89 
93  public function getMigrations(): array
94  {
95  return [];
96  }
97 }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A agent is some component that performs part of the setup process.
Definition: Agent.php:29
getInstallObjective(Setup\Config $config=null)
getUpdateObjective(Setup\Config $config=null)
getStatusObjective(Setup\Metrics\Storage $storage)
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?
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.if Agent has no Config ...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.if Config does not match the Agent...
A transformation is a function from one datatype to another.
Class ilBibliographicSetupAgent.
A configuration for the setup.
Definition: Config.php:26