ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.ilBibliographicSetupAgent.php
Go to the documentation of this file.
1<?php
2
20use ILIAS\Setup\Agent\HasNoNamedObjective;
27
32final class ilBibliographicSetupAgent implements Agent
33{
34 use HasNoNamedObjective;
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, ...[
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.
A non-objective, nothing to do to achieve it...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ilBibliographicSetupAgent.
getUpdateObjective(?Config $config=null)
Get the goal the agent wants to achieve on update.The provided configuration is to be used to change ...
getInstallObjective(?Config $config=null)
Get the goals the agent wants to achieve on setup.The provided configuration is to be used to set acc...
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.
getArrayToConfigTransformation()
Agents must be able to tell how to create a configuration from a nested array.
hasConfig()
Does this agent require a configuration?
This class attempt to achieve a set of database update steps.
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:30
A configuration for the setup.
Definition: Config.php:27
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:31