ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilTestQuestionPoolSetupAgent Class Reference
+ Inheritance diagram for ilTestQuestionPoolSetupAgent:
+ Collaboration diagram for ilTestQuestionPoolSetupAgent:

Public Member Functions

 getUpdateObjective (ILIAS\Setup\Config $config=null)
 
 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...
 
 getStatusObjective (Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
- Public Member Functions inherited from ILIAS\Setup\Agent
 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 27 of file class.ilTestQuestionPoolSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

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

42  {
43  throw new \LogicException('Agent has no config.');
44  }
A transformation is a function from one datatype to another.

◆ getBuildArtifactObjective()

ilTestQuestionPoolSetupAgent::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 51 of file class.ilTestQuestionPoolSetupAgent.php.

51  : Objective
52  {
53  return new NullObjective();
54  }
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()

ilTestQuestionPoolSetupAgent::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 46 of file class.ilTestQuestionPoolSetupAgent.php.

46  : Objective
47  {
48  return new NullObjective();
49  }
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()

ilTestQuestionPoolSetupAgent::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 61 of file class.ilTestQuestionPoolSetupAgent.php.

◆ getStatusObjective()

ilTestQuestionPoolSetupAgent::getStatusObjective ( Storage  $storage)

Definition at line 56 of file class.ilTestQuestionPoolSetupAgent.php.

56  : Objective
57  {
58  return new \ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new ilTestQuestionPool80DBUpdateSteps());
59  }
An objective is a desired state of the system that is supposed to be created by the setup...
Definition: Objective.php:30

◆ getUpdateObjective()

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

Definition at line 31 of file class.ilTestQuestionPoolSetupAgent.php.

32  {
34  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ hasConfig()

ilTestQuestionPoolSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 36 of file class.ilTestQuestionPoolSetupAgent.php.

36  : bool
37  {
38  return false;
39  }

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