ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilUICoreSetupAgent Class Reference

Class ilUICoreSetupAgent. More...

+ Inheritance diagram for ilUICoreSetupAgent:
+ Collaboration diagram for ilUICoreSetupAgent:

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 ()
 
 getNamedObjectives (?Config $config=null)
 
- 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...
 

Detailed Description

Member Function Documentation

◆ getArrayToConfigTransformation()

ilUICoreSetupAgent::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 48 of file class.ilUICoreSetupAgent.php.

49  {
50  throw new LogicException(self::class . " has no Config.");
51  }
A transformation is a function from one datatype to another.

◆ getBuildObjective()

ilUICoreSetupAgent::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 74 of file class.ilUICoreSetupAgent.php.

Referenced by getNamedObjectives().

74  : Objective
75  {
76  return new ObjectiveCollection(
77  'buildIlCtrlArtifacts',
78  false,
82  );
83  }
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
Class ilCtrlSecurityArtifactObjective.
Class ilCtrlStructureArtifactObjective.
+ Here is the caller graph for this function:

◆ getInstallObjective()

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

Definition at line 56 of file class.ilUICoreSetupAgent.php.

56  : Objective
57  {
58  return new NullObjective();
59  }
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...

◆ getMigrations()

ilUICoreSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 96 of file class.ilUICoreSetupAgent.php.

96  : array
97  {
98  return [];
99  }

◆ getNamedObjectives()

ilUICoreSetupAgent::getNamedObjectives ( ?Config  $config = null)

Definition at line 104 of file class.ilUICoreSetupAgent.php.

References getBuildObjective(), and getUpdateObjective().

104  : array
105  {
106  return [
107  'buildIlCtrlArtifacts' => new ObjectiveConstructor(
108  'builds all necessary ilCtrl artifacts.',
109  function () {
110  return $this->getBuildObjective();
111  }
112  ),
113 
114  'updateIlCtrlDatabase' => new ObjectiveConstructor(
115  'executes all ilCtrl database update steps.',
116  function () {
117  return $this->getUpdateObjective();
118  }
119  ),
120  ];
121  }
getUpdateObjective(?Config $config=null)
getBuildObjective()
Get the goal the agent wants to achieve to build artifacts.if Config does not match the Agent...
+ Here is the call graph for this function:

◆ getStatusObjective()

ilUICoreSetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 88 of file class.ilUICoreSetupAgent.php.

88  : Objective
89  {
90  return new NullObjective();
91  }
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...

◆ getUpdateObjective()

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

Definition at line 64 of file class.ilUICoreSetupAgent.php.

Referenced by getNamedObjectives().

64  : Objective
65  {
68  );
69  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30
Class ilCtrlDatabaseUpdateSteps holds the database update- steps affecting ilCtrl tables...
+ Here is the caller graph for this function:

◆ hasConfig()

ilUICoreSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 40 of file class.ilUICoreSetupAgent.php.

40  : bool
41  {
42  return false;
43  }

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