ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilBibliographicSetupAgent Class Reference

Class ilBibliographicSetupAgent. More...

+ Inheritance diagram for ilBibliographicSetupAgent:
+ Collaboration diagram for ilBibliographicSetupAgent:

Public Member Functions

 hasConfig ()
 Does this agent require a configuration? More...
 
 getArrayToConfigTransformation ()
 Agents must be able to tell how to create a configuration from a nested array.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getInstallObjective (?Config $config=null)
 
 getUpdateObjective (?Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getInstallObjective (?Config $config=null)
 Get the goals the agent wants to achieve on setup. More...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Data Fields

const COMPONENT_DIR = 'bibl'
 

Detailed Description

Member Function Documentation

◆ getArrayToConfigTransformation()

ilBibliographicSetupAgent::getArrayToConfigTransformation ( )

Agents must be able to tell how to create a configuration from a nested array.

Exceptions
LogicExceptionif Agent has no Config

Implements ILIAS\Setup\Agent.

Definition at line 52 of file class.ilBibliographicSetupAgent.php.

53  {
54  throw new LogicException("ilBibliographicSetupAgent has no config.");
55  }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ilBibliographicSetupAgent::getBuildObjective ( )

Get the goal the agent wants to achieve to build artifacts.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent.

Implements ILIAS\Setup\Agent.

Definition at line 83 of file class.ilBibliographicSetupAgent.php.

83  : Objective
84  {
85  return new NullObjective();
86  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
A non-objective, nothing to do to achieve it...

◆ getInstallObjective()

ilBibliographicSetupAgent::getInstallObjective ( ?Config  $config = null)

◆ getMigrations()

ilBibliographicSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 99 of file class.ilBibliographicSetupAgent.php.

99  : array
100  {
101  return [];
102  }

◆ getStatusObjective()

ilBibliographicSetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 91 of file class.ilBibliographicSetupAgent.php.

91  : Objective
92  {
94  }
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...

◆ getUpdateObjective()

ilBibliographicSetupAgent::getUpdateObjective ( ?Config  $config = null)

Definition at line 71 of file class.ilBibliographicSetupAgent.php.

71  : Objective
72  {
73  return new ObjectiveCollection('Setup Bibliografic directories and database', true, ...[
75  new ilBibliograficDB80()
76  )
77  ]);
78  }
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...

◆ hasConfig()

ilBibliographicSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 44 of file class.ilBibliographicSetupAgent.php.

44  : bool
45  {
46  return false;
47  }

Field Documentation

◆ COMPONENT_DIR

const ilBibliographicSetupAgent::COMPONENT_DIR = 'bibl'

Definition at line 39 of file class.ilBibliographicSetupAgent.php.


The documentation for this class was generated from the following file: