ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\LDAP\Setup\Agent Class Reference
+ Inheritance diagram for ILIAS\LDAP\Setup\Agent:
+ Collaboration diagram for ILIAS\LDAP\Setup\Agent:

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
 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...
 
 getUpdateObjective (?Config $config=null)
 Get the goal the agent wants to achieve on update. More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts. More...
 
 getStatusObjective (Metrics\Storage $storage)
 Get the objective to be achieved when status is requested. More...
 
 getMigrations ()
 Get a named map of migrations available for this Agent. More...
 
 getNamedObjectives (?Config $config=null)
 Gets all named objectives The keys of the returned array are the commands. More...
 

Detailed Description

Definition at line 30 of file Agent.php.

Member Function Documentation

◆ getArrayToConfigTransformation()

ILIAS\LDAP\Setup\Agent::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 39 of file Agent.php.

39 : Refinery\Transformation
40 {
41 throw new LogicException('Agent has no config.');
42 }

◆ getBuildArtifactObjective()

ILIAS\LDAP\Setup\Agent::getBuildArtifactObjective ( )

Definition at line 56 of file Agent.php.

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

◆ getBuildObjective()

ILIAS\LDAP\Setup\Agent::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 71 of file Agent.php.

71 : Objective
72 {
73 return new Setup\Objective\NullObjective();
74 }

◆ getInstallObjective()

ILIAS\LDAP\Setup\Agent::getInstallObjective ( ?Setup\Config  $config = null)

Definition at line 44 of file Agent.php.

44 : Setup\Objective
45 {
46 return new Setup\Objective\NullObjective();
47 }

◆ getMigrations()

ILIAS\LDAP\Setup\Agent::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 66 of file Agent.php.

66 : array
67 {
68 return [];
69 }

◆ getStatusObjective()

ILIAS\LDAP\Setup\Agent::getStatusObjective ( Setup\Metrics\Storage  $storage)

Definition at line 61 of file Agent.php.

61 : Setup\Objective
62 {
63 return new ilDatabaseUpdateStepsMetricsCollectedObjective($storage, new LDAPBindPasswordFieldMigration());
64 }

◆ getUpdateObjective()

ILIAS\LDAP\Setup\Agent::getUpdateObjective ( ?Setup\Config  $config = null)

Definition at line 49 of file Agent.php.

49 : Setup\Objective
50 {
52 new LDAPBindPasswordFieldMigration()
53 );
54 }
This class attempt to achieve a set of database update steps.

◆ hasConfig()

ILIAS\LDAP\Setup\Agent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 34 of file Agent.php.

34 : bool
35 {
36 return false;
37 }

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