ILIAS  release_8 Revision v8.24
ilHttpSetupAgent Class Reference
+ Inheritance diagram for ilHttpSetupAgent:
+ Collaboration diagram for ilHttpSetupAgent:

Public Member Functions

 __construct (Refinery\Factory $refinery)
 
 hasConfig ()
 
 getArrayToConfigTransformation ()
 
 getInstallObjective (Setup\Config $config=null)
 
 getUpdateObjective (Setup\Config $config=null)
 
 getBuildArtifactObjective ()
 
 getStatusObjective (Setup\Metrics\Storage $storage)
 
 getMigrations ()
 @inheritDoc More...
 

Protected Attributes

ILIAS Refinery Factory $refinery
 

Detailed Description

Definition at line 23 of file class.ilHttpSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilHttpSetupAgent::__construct ( Refinery\Factory  $refinery)

Definition at line 29 of file class.ilHttpSetupAgent.php.

31 {
32 $this->refinery = $refinery;
33 }
ILIAS Refinery Factory $refinery

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

+ Here is the call graph for this function:

Member Function Documentation

◆ getArrayToConfigTransformation()

ilHttpSetupAgent::getArrayToConfigTransformation ( )

Definition at line 46 of file class.ilHttpSetupAgent.php.

46 : Refinery\Transformation
47 {
48 return $this->refinery->custom()->transformation(function ($data): \ilHttpSetupConfig {
49 return new \ilHttpSetupConfig(
50 $data["path"],
51 isset($data["https_autodetection"]) && $data["https_autodetection"],
52 isset($data["forced"]) && $data["forced"],
53 (isset($data["https_autodetection"]) && $data["https_autodetection"])
54 ? $data["https_autodetection"]["header_name"]
55 : null,
56 (isset($data["https_autodetection"]) && $data["https_autodetection"])
57 ? $data["https_autodetection"]["header_value"]
58 : null,
59 isset($data["proxy"]) && $data["proxy"],
60 (isset($data["proxy"]) && $data["proxy"])
61 ? $data["proxy"]["host"]
62 : null,
63 (isset($data["proxy"]) && $data["proxy"])
64 ? $data["proxy"]["port"]
65 : null,
66 );
67 });
68 }

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

+ Here is the call graph for this function:

◆ getBuildArtifactObjective()

ilHttpSetupAgent::getBuildArtifactObjective ( )

Definition at line 101 of file class.ilHttpSetupAgent.php.

101 : Setup\Objective
102 {
103 return new Setup\Objective\NullObjective();
104 }

◆ getInstallObjective()

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

Definition at line 73 of file class.ilHttpSetupAgent.php.

73 : Setup\Objective
74 {
75 $http_config_stored = new ilHttpConfigStoredObjective($config);
76
77 if (!$config->isProxyEnabled()) {
78 return $http_config_stored;
79 }
80
81 return new Setup\Objective\ObjectiveWithPreconditions(
82 $http_config_stored,
84 );
85 }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:85

References $config.

◆ getMigrations()

ilHttpSetupAgent::getMigrations ( )

@inheritDoc

Definition at line 117 of file class.ilHttpSetupAgent.php.

117 : array
118 {
119 return [];
120 }

◆ getStatusObjective()

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

Definition at line 109 of file class.ilHttpSetupAgent.php.

109 : Setup\Objective
110 {
111 return new ilHttpMetricsCollectedObjective($storage);
112 }

◆ getUpdateObjective()

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

Definition at line 90 of file class.ilHttpSetupAgent.php.

90 : Setup\Objective
91 {
92 if ($config !== null) {
94 }
95 return new Setup\Objective\NullObjective();
96 }

References $config.

◆ hasConfig()

ilHttpSetupAgent::hasConfig ( )

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

38 : bool
39 {
40 return true;
41 }

Field Documentation

◆ $refinery

ILIAS Refinery Factory ilHttpSetupAgent::$refinery
protected

Definition at line 27 of file class.ilHttpSetupAgent.php.

Referenced by __construct().


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