ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ILIAS\Object\Setup\ilObjectSetupAgent Class Reference
+ Inheritance diagram for ILIAS\Object\Setup\ilObjectSetupAgent:
+ Collaboration diagram for ILIAS\Object\Setup\ilObjectSetupAgent:

Public Member Functions

 getUpdateObjective (Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getStatusObjective (Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getBuildArtifactObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent\NullAgent
 __construct (Refinery $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Config $config=null)
 
 getUpdateObjective (Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Metrics\Storage $storage)
 
 getMigrations ()
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 

Additional Inherited Members

- Protected Attributes inherited from ILIAS\Setup\Agent\NullAgent
Refinery $refinery
 

Detailed Description

Definition at line 28 of file class.ilObjectSetupAgent.php.

Member Function Documentation

◆ getBuildArtifactObjective()

ILIAS\Object\Setup\ilObjectSetupAgent::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 67 of file class.ilObjectSetupAgent.php.

67  : Objective
68  {
69  return new ilObjectTypeSpecificPropertiesArtifactObjective();
70  }

◆ getMigrations()

ILIAS\Object\Setup\ilObjectSetupAgent::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 60 of file class.ilObjectSetupAgent.php.

60  : array
61  {
62  return [
63  new ilObjectTileImageMigration()
64  ];
65  }

◆ getStatusObjective()

ILIAS\Object\Setup\ilObjectSetupAgent::getStatusObjective ( Metrics\Storage  $storage)

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

44  : Objective
45  {
46  return new ObjectiveCollection(
47  'Services/Object',
48  true,
50  $storage,
51  new ilObjectDBUpdateSteps()
52  ),
54  $storage,
55  new ilObject9DBUpdateSteps()
56  )
57  );
58  }

◆ getUpdateObjective()

ILIAS\Object\Setup\ilObjectSetupAgent::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 30 of file class.ilObjectSetupAgent.php.

30  : Objective
31  {
32  return new ObjectiveCollection(
33  'Database is updated for Services/Object',
34  false,
36  new ilObjectDBUpdateSteps()
37  ),
39  new ilObject9DBUpdateSteps()
40  )
41  );
42  }

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