ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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 ()
 
 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.ilHttpSetupAgent.php.

Constructor & Destructor Documentation

◆ __construct()

ilHttpSetupAgent::__construct ( Refinery\Factory  $refinery)

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

References $refinery.

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

Member Function Documentation

◆ getArrayToConfigTransformation()

ilHttpSetupAgent::getArrayToConfigTransformation ( )

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

References $data.

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

◆ getBuildArtifactObjective()

ilHttpSetupAgent::getBuildArtifactObjective ( )

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

92  : Setup\Objective
93  {
94  return new Setup\NullObjective();
95  }

◆ getConfigInput()

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

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

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

◆ getInstallObjective()

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

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

References $config.

72  : Setup\Objective
73  {
74  return new Setup\ObjectiveCollection(
75  "Complete objectives from Services/Http",
76  false,
78  );
79  }
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68

◆ getUpdateObjective()

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

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

84  : Setup\Objective
85  {
86  return new Setup\NullObjective();
87  }

◆ hasConfig()

ilHttpSetupAgent::hasConfig ( )

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

26  : bool
27  {
28  return true;
29  }

Field Documentation

◆ $refinery

ilHttpSetupAgent::$refinery
protected

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

Referenced by __construct().


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