ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 53 of file class.ilDataCollectionSetupAgent.php.

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

◆ getBuildArtifactObjective()

ilDataCollectionSetupAgent::getBuildArtifactObjective ( )

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

63  : Objective
64  {
65  return new NullObjective();
66  }
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 78 of file class.ilDataCollectionSetupAgent.php.

78  : Objective
79  {
80  return new NullObjective();
81  }
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 58 of file class.ilDataCollectionSetupAgent.php.

58  : Objective
59  {
60  return new NullObjective();
61  }
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 40 of file class.ilDataCollectionSetupAgent.php.

◆ getNamedObjectives()

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

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

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

◆ getStatusObjective()

ilDataCollectionSetupAgent::getStatusObjective ( Storage  $storage)

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

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

30  : Objective
31  {
32  return new Setup\ObjectiveCollection(
33  'DataCollection Update',
34  true,
37  );
38  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ hasConfig()

ilDataCollectionSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

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

48  : bool
49  {
50  return false;
51  }

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