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

Public Member Functions

 __construct (Refinery\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.
Exceptions
LogicExceptionif Agent has no Config
More...
 
 getBuildObjective ()
 Get the goal the agent wants to achieve to build artifacts.
Exceptions
InvalidArgumentExceptionif Config does not match the Agent.
More...
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 
- 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

Refinery Factory $refinery
 

Detailed Description

Definition at line 24 of file class.ilUtilitiesSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilUtilitiesSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 30 of file class.ilUtilitiesSetupAgent.php.

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

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

References $data, ILIAS\Setup\Agent\getInstallObjective(), ILIAS\Setup\Agent\getUpdateObjective(), null, and ILIAS\Repository\refinery().

46  : Refinery\Transformation
47  {
48  return $this->refinery->custom()->transformation(function ($data) {
49  return new ilUtilitiesSetupConfig(
50  $data["path_to_convert"] ?? "/usr/bin/convert",
51  $data["path_to_zip"] ?? "/usr/bin/zip",
52  $data["path_to_unzip"] ?? "/usr/bin/unzip"
53  );
54  });
55  }
+ Here is the call graph for this function:

◆ getBuildObjective()

ilUtilitiesSetupAgent::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 81 of file class.ilUtilitiesSetupAgent.php.

81  : Setup\Objective
82  {
83  return new Setup\Objective\NullObjective();
84  }

◆ getMigrations()

ilUtilitiesSetupAgent::getMigrations ( )

Implements ILIAS\Setup\Agent.

Definition at line 97 of file class.ilUtilitiesSetupAgent.php.

97  : array
98  {
99  return [];
100  }

◆ getStatusObjective()

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

Definition at line 89 of file class.ilUtilitiesSetupAgent.php.

◆ hasConfig()

ilUtilitiesSetupAgent::hasConfig ( )

Does this agent require a configuration?

Implements ILIAS\Setup\Agent.

Definition at line 38 of file class.ilUtilitiesSetupAgent.php.

38  : bool
39  {
40  return true;
41  }

Field Documentation

◆ $refinery

Refinery Factory ilUtilitiesSetupAgent::$refinery
protected

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

Referenced by __construct().


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