ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilUtilitiesSetupAgent Class Reference
+ Inheritance diagram for ilUtilitiesSetupAgent:
+ Collaboration diagram for ilUtilitiesSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getConfigInput (Setup\Config $config=null)
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilUtilitiesSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

19  {
20  $this->refinery = $refinery;
21  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilUtilitiesSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

42  : Refinery\Transformation
43  {
44  return $this->refinery->custom()->transformation(function ($data) {
45  return new \ilUtilitiesSetupConfig(
46  $data["path_to_convert"] ?? "/usr/bin/convert",
47  $data["path_to_zip"] ?? "/usr/bin/zip",
48  $data["path_to_unzip"] ?? "/usr/bin/unzip"
49  );
50  });
51  }
$data
Definition: storeScorm.php:23

◆ getBuildArtifactObjective()

ilUtilitiesSetupAgent::getBuildArtifactObjective ( )

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

76  : Setup\Objective
77  {
78  return new Setup\NullObjective();
79  }

◆ getConfigInput()

ilUtilitiesSetupAgent::getConfigInput ( Setup\Config  $config = null)

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

34  : UI\Component\Input\Field\Input
35  {
36  throw new \LogicException("Not yet implemented.");
37  }

◆ getInstallObjective()

ilUtilitiesSetupAgent::getInstallObjective ( Setup\Config  $config = null)

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

References $config.

56  : Setup\Objective
57  {
58  return new Setup\ObjectiveCollection(
59  "Complete objectives from Services/Utilities",
60  false,
62  );
63  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Stores configuration for the Utilities service (paths to various tools) in the according ini-fields...

◆ getUpdateObjective()

ilUtilitiesSetupAgent::getUpdateObjective ( Setup\Config  $config = null)

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

68  : Setup\Objective
69  {
70  return new Setup\NullObjective();
71  }

◆ hasConfig()

ilUtilitiesSetupAgent::hasConfig ( )

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

26  : bool
27  {
28  return true;
29  }

Field Documentation

◆ $refinery

ilUtilitiesSetupAgent::$refinery
protected

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

Referenced by __construct().


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