ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\components\Table\Setup\LegacyTableSetupAgent Class Reference
+ Inheritance diagram for ILIAS\components\Table\Setup\LegacyTableSetupAgent:
+ Collaboration diagram for ILIAS\components\Table\Setup\LegacyTableSetupAgent:

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 (Setup\Metrics\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 27 of file LegacyTableSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::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 36 of file LegacyTableSetupAgent.php.

36 : Refinery\Transformation
37 {
38 throw new \LogicException('Agent has no config.');
39 }

◆ getBuildObjective()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::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 55 of file LegacyTableSetupAgent.php.

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

◆ getInstallObjective()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 41 of file LegacyTableSetupAgent.php.

41 : Setup\Objective
42 {
43 return new Setup\Objective\NullObjective();
44 }

◆ getMigrations()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::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 69 of file LegacyTableSetupAgent.php.

69 : array
70 {
71 return [];
72 }

◆ getStatusObjective()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 60 of file LegacyTableSetupAgent.php.

60 : Setup\Objective
61 {
62 return new ObjectiveCollection(
63 'Database is updated for component/ILIAS/Table',
64 true,
65 new \ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new LegacyTableUpdateSteps11()),
66 );
67 }

◆ getUpdateObjective()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 46 of file LegacyTableSetupAgent.php.

46 : Setup\Objective
47 {
48 return new ObjectiveCollection(
49 'Database is updated for component/ILIAS/Table',
50 true,
51 new \ilDatabaseUpdateStepsExecutedObjective(new LegacyTableUpdateSteps11()),
52 );
53 }
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ILIAS\components\Table\Setup\LegacyTableSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 31 of file LegacyTableSetupAgent.php.

31 : bool
32 {
33 return false;
34 }

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