ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilResourceStorageSetupAgent Class Reference

Class ilResourceStorageSetupAgent. More...

+ Inheritance diagram for ilResourceStorageSetupAgent:
+ Collaboration diagram for ilResourceStorageSetupAgent:

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. More...
 
 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...
 
 getBuildArtifactObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 
 getMigrations ()
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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...
 

Detailed Description

Member Function Documentation

◆ getArrayToConfigTransformation()

ilResourceStorageSetupAgent::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 41 of file class.ilResourceStorageSetupAgent.php.

42  {
43  throw new \LogicException("Agent has no config.");
44  }
A transformation is a function from one datatype to another.

◆ getBuildArtifactObjective()

ilResourceStorageSetupAgent::getBuildArtifactObjective ( )

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 70 of file class.ilResourceStorageSetupAgent.php.

70  : Objective
71  {
72  return new Objective\NullObjective();
73  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getInstallObjective()

ilResourceStorageSetupAgent::getInstallObjective ( Config  $config = null)

Get the goals the agent wants to achieve on setup.

The provided configuration is to be used to set according configuration values in the installation.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent..

Implements ILIAS\Setup\Agent.

Definition at line 46 of file class.ilResourceStorageSetupAgent.php.

46  : Objective
47  {
48  return new ObjectiveCollection(
49  'IRSS Installation',
50  false,
54  )
55  );
56  }
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...

◆ getMigrations()

ilResourceStorageSetupAgent::getMigrations ( )
Returns
[]

Implements ILIAS\Setup\Agent.

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

83  : array
84  {
85  return [new ilStorageHandlerV1Migration()];
86  }
Class ilStorageHandlerV1Migration.

◆ getStatusObjective()

ilResourceStorageSetupAgent::getStatusObjective ( Metrics\Storage  $storage)

Definition at line 75 of file class.ilResourceStorageSetupAgent.php.

75  : Objective
76  {
77  return new Objective\NullObjective();
78  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

ilResourceStorageSetupAgent::getUpdateObjective ( Config  $config = null)

Get the goal the agent wants to achieve on update.

The provided configuration is to be used to change according configuration values in the installation. If this is not possible for some reason, an according UnachievableException needs to be thrown in the according objective.

The configuration is not to be used to initialize the required environment for the objectives. This must be done via ClientIdReadObjective and depending objectives like ilIniFilesLoadedObjective.

If no configuration is provided the configuration of the component should stay as is.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent..

Implements ILIAS\Setup\Agent.

Definition at line 58 of file class.ilResourceStorageSetupAgent.php.

58  : Objective
59  {
60  return new ObjectiveCollection(
61  'IRSS Update',
62  false,
66  )
67  );
68  }
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()

ilResourceStorageSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 36 of file class.ilResourceStorageSetupAgent.php.

36  : bool
37  {
38  return false;
39  }

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