ILIAS  trunk Revision v11.0_alpha-1753-gb21ca8c4367
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilBibliographicSetupAgent.php
Go to the documentation of this file.
1 <?php
2 
27 
32 final class ilBibliographicSetupAgent implements Agent
33 {
35 
39  public const COMPONENT_DIR = 'bibl';
40 
44  public function hasConfig(): bool
45  {
46  return false;
47  }
48 
53  {
54  throw new LogicException("ilBibliographicSetupAgent has no config.");
55  }
56 
60  public function getInstallObjective(?Config $config = null): Objective
61  {
63  self::COMPONENT_DIR,
65  );
66  }
67 
71  public function getUpdateObjective(?Config $config = null): Objective
72  {
73  return new ObjectiveCollection('Setup Bibliografic directories and database', true, ...[
75  new ilBibliograficDB80()
76  )
77  ]);
78  }
79 
83  public function getBuildObjective(): Objective
84  {
85  return new NullObjective();
86  }
87 
91  public function getStatusObjective(Storage $storage): Objective
92  {
94  }
95 
99  public function getMigrations(): array
100  {
101  return [];
102  }
103 }
A objective collection is a objective that is achieved once all subobjectives are achieved...
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
A non-objective, nothing to do to achieve it...
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
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