ILIAS  trunk Revision v12.0_alpha-16-g3e876e53c80
ILIAS\History\Setup\HistorySetupAgent Class Reference
+ Inheritance diagram for ILIAS\History\Setup\HistorySetupAgent:
+ Collaboration diagram for ILIAS\History\Setup\HistorySetupAgent:

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 (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Definition at line 30 of file HistorySetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\History\Setup\HistorySetupAgent::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 39 of file HistorySetupAgent.php.

39 : Refinery\Transformation
40 {
41 throw new LogicException('Agent has no config.');
42 }

◆ getBuildObjective()

ILIAS\History\Setup\HistorySetupAgent::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 56 of file HistorySetupAgent.php.

56 : Setup\Objective
57 {
58 return new NullObjective();
59 }

◆ getInstallObjective()

ILIAS\History\Setup\HistorySetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 44 of file HistorySetupAgent.php.

44 : Setup\Objective
45 {
46 return new NullObjective();
47 }

◆ getMigrations()

ILIAS\History\Setup\HistorySetupAgent::getMigrations ( )

Get a named map of migrations available for this Agent.

Should also return Migrations that have run completely.

Returns
array<string,Migration>|Migration[]

Implements ILIAS\Setup\Agent.

Definition at line 66 of file HistorySetupAgent.php.

66 : array
67 {
68 return [];
69 }

◆ getStatusObjective()

ILIAS\History\Setup\HistorySetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 61 of file HistorySetupAgent.php.

61 : Setup\Objective
62 {
63 return new NullObjective();
64 }

◆ getUpdateObjective()

ILIAS\History\Setup\HistorySetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 49 of file HistorySetupAgent.php.

49 : Setup\Objective
50 {
52 new HistoryDatabaseUpdateSteps11()
53 );
54 }
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ILIAS\History\Setup\HistorySetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 34 of file HistorySetupAgent.php.

34 : bool
35 {
36 return false;
37 }

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