ILIAS  trunk Revision v11.0_alpha-1862-g4e205cb56d4
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ilMailSetupAgent Class Reference
+ Inheritance diagram for ilMailSetupAgent:
+ Collaboration diagram for ilMailSetupAgent:

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)
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 Get a named map of migrations available for this Agent. 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 24 of file class.ilMailSetupAgent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ilMailSetupAgent::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 33 of file class.ilMailSetupAgent.php.

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

◆ getBuildObjective()

ilMailSetupAgent::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 53 of file class.ilMailSetupAgent.php.

53  : Setup\Objective
54  {
55  return new Setup\Objective\NullObjective();
56  }

◆ getInstallObjective()

◆ getMigrations()

ilMailSetupAgent::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 63 of file class.ilMailSetupAgent.php.

63  : array
64  {
65  return [];
66  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

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

◆ hasConfig()

ilMailSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 28 of file class.ilMailSetupAgent.php.

28  : bool
29  {
30  return false;
31  }

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