ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ilDataCollectionSetupAgent Class Reference
+ Inheritance diagram for ilDataCollectionSetupAgent:
+ Collaboration diagram for ilDataCollectionSetupAgent:

Public Member Functions

 getUpdateObjective (?Config $config=null)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 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)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Storage $storage)
 
 getNamedObjectives (?Config $config=null)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
- 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

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

Member Function Documentation

◆ getArrayToConfigTransformation()

ilDataCollectionSetupAgent::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 54 of file class.ilDataCollectionSetupAgent.php.

55  {
56  throw new LogicException(self::class . " has no config.");
57  }
A transformation is a function from one datatype to another.

◆ getBuildArtifactObjective()

ilDataCollectionSetupAgent::getBuildArtifactObjective ( )

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

64  : Objective
65  {
66  return new NullObjective();
67  }
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...

◆ getBuildObjective()

ilDataCollectionSetupAgent::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 79 of file class.ilDataCollectionSetupAgent.php.

79  : Objective
80  {
81  return new NullObjective();
82  }
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...

◆ getInstallObjective()

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

Definition at line 59 of file class.ilDataCollectionSetupAgent.php.

59  : Objective
60  {
61  return new NullObjective();
62  }
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()

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

◆ getNamedObjectives()

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

Definition at line 74 of file class.ilDataCollectionSetupAgent.php.

74  : array
75  {
76  return [];
77  }

◆ getStatusObjective()

ilDataCollectionSetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 69 of file class.ilDataCollectionSetupAgent.php.

69  : Objective
70  {
71  return new NullObjective();
72  }
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()

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

Definition at line 30 of file class.ilDataCollectionSetupAgent.php.

◆ hasConfig()

ilDataCollectionSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 49 of file class.ilDataCollectionSetupAgent.php.

49  : bool
50  {
51  return false;
52  }

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