ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 48 of file class.ilDataCollectionSetupAgent.php.

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

◆ getBuildArtifactObjective()

ilDataCollectionSetupAgent::getBuildArtifactObjective ( )

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...

◆ 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 73 of file class.ilDataCollectionSetupAgent.php.

73  : Objective
74  {
75  return new NullObjective();
76  }
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 53 of file class.ilDataCollectionSetupAgent.php.

53  : Objective
54  {
55  return new NullObjective();
56  }
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 35 of file class.ilDataCollectionSetupAgent.php.

◆ getNamedObjectives()

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

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

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

◆ getStatusObjective()

ilDataCollectionSetupAgent::getStatusObjective ( Storage  $storage)

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...

◆ getUpdateObjective()

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

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

30  : Objective
31  {
33  }
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 43 of file class.ilDataCollectionSetupAgent.php.

43  : bool
44  {
45  return false;
46  }

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