ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
ilTestSetupAgent Class Reference
+ Inheritance diagram for ilTestSetupAgent:
+ Collaboration diagram for ilTestSetupAgent:

Public Member Functions

 getUpdateObjective (ILIAS\Setup\Config $config=null)
 
 getStatusObjective (Metrics\Storage $storage)
 
 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...
 
 getBuildArtifactObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. 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 33 of file class.ilTestSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilTestSetupAgent::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 57 of file class.ilTestSetupAgent.php.

58  {
59  throw new \LogicException("Agent has no config.");
60  }
A transformation is a function from one datatype to another.

◆ getBuildArtifactObjective()

ilTestSetupAgent::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.ilTestSetupAgent.php.

67  : Objective
68  {
69  return new Setup\Objective\NullObjective();
70  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getInstallObjective()

ilTestSetupAgent::getInstallObjective ( Config  $config = null)

Get the goals the agent wants to achieve on setup.

The provided configuration is to be used to set according configuration values in the installation.

Exceptions
InvalidArgumentExceptionif Config does not match the Agent..

Implements ILIAS\Setup\Agent.

Definition at line 62 of file class.ilTestSetupAgent.php.

62  : Objective
63  {
64  return new Setup\Objective\NullObjective();
65  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getMigrations()

◆ getStatusObjective()

ilTestSetupAgent::getStatusObjective ( Metrics\Storage  $storage)

Definition at line 42 of file class.ilTestSetupAgent.php.

42  : Objective
43  {
44  return new Setup\ObjectiveCollection(
45  "Metrics from the Test & Assessment",
46  false,
49  );
50  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

ilTestSetupAgent::getUpdateObjective ( ILIAS\Setup\Config  $config = null)

Definition at line 37 of file class.ilTestSetupAgent.php.

37  : Objective
38  {
40  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ hasConfig()

ilTestSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 52 of file class.ilTestSetupAgent.php.

52  : bool
53  {
54  return false;
55  }

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