ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
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 ()
 

Protected Attributes

 $refinery
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilHttpSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

21  {
22  $this->refinery = $refinery;
23  }

Member Function Documentation

◆ getArrayToConfigTransformation()

ilHttpSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

36  : Refinery\Transformation
37  {
38  return $this->refinery->custom()->transformation(function ($data) {
39  return new \ilHttpSetupConfig(
40  $data["path"],
41  (isset($data["https_autodetection"]) && $data["https_autodetection"])
42  ? true
43  : false,
44  (isset($data["https_autodetection"]) && $data["https_autodetection"])
45  ? $data["https_autodetection"]["header_name"]
46  : null,
47  (isset($data["https_autodetection"]) && $data["https_autodetection"])
48  ? $data["https_autodetection"]["header_value"]
49  : null,
50  (isset($data["proxy"]) && $data["proxy"])
51  ? true
52  : false,
53  (isset($data["proxy"]) && $data["proxy"])
54  ? $data["proxy"]["host"]
55  : null,
56  (isset($data["proxy"]) && $data["proxy"])
57  ? $data["proxy"]["port"]
58  : null,
59  );
60  });
61  }
$data
Definition: storeScorm.php:23

◆ getBuildArtifactObjective()

ilHttpSetupAgent::getBuildArtifactObjective ( )

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

94  : Setup\Objective
95  {
96  return new Setup\Objective\NullObjective();
97  }

◆ getInstallObjective()

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

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

References $config.

66  : Setup\Objective
67  {
68  $http_config_stored = new ilHttpConfigStoredObjective($config);
69 
70  if (!$config->isProxyEnabled()) {
71  return $http_config_stored;
72  }
73 
74  return new Setup\Objective\ObjectiveWithPreconditions(
75  $http_config_stored,
77  );
78  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ getMigrations()

ilHttpSetupAgent::getMigrations ( )

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

110  : array
111  {
112  return [];
113  }

◆ getStatusObjective()

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

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

102  : Setup\Objective
103  {
104  return new ilHttpMetricsCollectedObjective($storage);
105  }

◆ getUpdateObjective()

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

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

References $config.

83  : Setup\Objective
84  {
85  if ($config !== null) {
87  }
88  return new Setup\Objective\NullObjective();
89  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ hasConfig()

ilHttpSetupAgent::hasConfig ( )

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

28  : bool
29  {
30  return true;
31  }

Field Documentation

◆ $refinery

ilHttpSetupAgent::$refinery
protected

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

Referenced by __construct().


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