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

Public Member Functions

 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 (?Setup\Config $config=null)
 
 getUpdateObjective (?Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 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 25 of file class.ilHTLMSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilHTLMSetupAgent::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 34 of file class.ilHTLMSetupAgent.php.

34  : Refinery\Transformation
35  {
36  throw new LogicException("Agent has no config.");
37  }

◆ getBuildArtifactObjective()

ilHTLMSetupAgent::getBuildArtifactObjective ( )

Definition at line 55 of file class.ilHTLMSetupAgent.php.

55  : Setup\Objective
56  {
57  return new Setup\Objective\NullObjective();
58  }

◆ getBuildObjective()

ilHTLMSetupAgent::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 72 of file class.ilHTLMSetupAgent.php.

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

◆ getInstallObjective()

ilHTLMSetupAgent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 39 of file class.ilHTLMSetupAgent.php.

39  : Setup\Objective
40  {
41  return new Setup\Objective\NullObjective();
42  }

◆ getMigrations()

ilHTLMSetupAgent::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 65 of file class.ilHTLMSetupAgent.php.

65  : array
66  {
67  return [
68  new ilHTLMMigration()
69  ];
70  }

◆ getStatusObjective()

ilHTLMSetupAgent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 60 of file class.ilHTLMSetupAgent.php.

60  : Setup\Objective
61  {
62  return new Setup\Objective\NullObjective();
63  }

◆ getUpdateObjective()

ilHTLMSetupAgent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 44 of file class.ilHTLMSetupAgent.php.

44  : Setup\Objective
45  {
46  return new Setup\ObjectiveCollection(
47  'HTML Learning Module',
48  true,
51  )
52  );
53  }

◆ hasConfig()

ilHTLMSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 29 of file class.ilHTLMSetupAgent.php.

29  : bool
30  {
31  return false;
32  }

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