ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
ilADNAgent Class Reference
+ Inheritance diagram for ilADNAgent:
+ Collaboration diagram for ilADNAgent:

Public Member Functions

 __construct (Factory $refinery)
 
 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)
 
 getUpdateObjective (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...
 
 getNamedObjectives (?Config $config=null)
 
- 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...
 

Protected Attributes

Factory $refinery
 

Detailed Description

Author
Lukas Zehnder lukas.nosp@m.@sr..nosp@m.solut.nosp@m.ions AutoloadingIssuesInspection

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

Constructor & Destructor Documentation

◆ __construct()

ilADNAgent::__construct ( Factory  $refinery)

Definition at line 35 of file class.ilADNAgent.php.

References $refinery, and ILIAS\Repository\refinery().

36  {
37  $this->refinery = $refinery;
38  }
Factory $refinery
+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilADNAgent::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 47 of file class.ilADNAgent.php.

47  : Refinery\Transformation
48  {
49  throw new \LogicException("Agent has no config.");
50  }

◆ getBuildObjective()

ilADNAgent::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 class.ilADNAgent.php.

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

◆ getInstallObjective()

ilADNAgent::getInstallObjective ( Config  $config = null)

Definition at line 53 of file class.ilADNAgent.php.

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

◆ getMigrations()

ilADNAgent::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 83 of file class.ilADNAgent.php.

83  : array
84  {
85  return [];
86  }

◆ getNamedObjectives()

ilADNAgent::getNamedObjectives ( ?Config  $config = null)

Definition at line 88 of file class.ilADNAgent.php.

88  : array
89  {
90  return [];
91  }

◆ getStatusObjective()

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

◆ getUpdateObjective()

ilADNAgent::getUpdateObjective ( Config  $config = null)

Definition at line 59 of file class.ilADNAgent.php.

59  : Setup\Objective
60  {
61  return new Setup\ObjectiveCollection(
62  "",
63  true,
66  )
67  );
68  }

◆ hasConfig()

ilADNAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 41 of file class.ilADNAgent.php.

41  : bool
42  {
43  return false;
44  }

Field Documentation

◆ $refinery

Factory ilADNAgent::$refinery
protected

Definition at line 33 of file class.ilADNAgent.php.

Referenced by __construct().


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