ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
class.ilHttpSetupAgent.php
Go to the documentation of this file.
1<?php
2
3/* Copyright (c) 2019 Richard Klees <richard.klees@concepts-and-training.de> Extended GPL, see docs/LICENSE */
4
7use ILIAS\Data;
8use ILIAS\UI;
9
11{
15 protected $refinery;
16
17 public function __construct(
18 Refinery\Factory $refinery
19 ) {
20 $this->refinery = $refinery;
21 }
22
26 public function hasConfig() : bool
27 {
28 return true;
29 }
30
34 public function getConfigInput(Setup\Config $config = null) : UI\Component\Input\Field\Input
35 {
36 throw new \LogicException("Not yet implemented.");
37 }
38
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 }
68
72 public function getInstallObjective(Setup\Config $config = null) : Setup\Objective
73 {
75 "Complete objectives from Services/Http",
76 false,
78 );
79 }
80
84 public function getUpdateObjective(Setup\Config $config = null) : Setup\Objective
85 {
86 return new Setup\NullObjective();
87 }
88
92 public function getBuildArtifactObjective() : Setup\Objective
93 {
94 return new Setup\NullObjective();
95 }
96}
An exception for terminatinating execution or to throw for unit testing.
Builds data types.
Definition: Factory.php:20
A non-objective, nothing to do to achieve it...
A objective collection is a objective that is achieved once all subobjectives are achieved.
__construct(Refinery\Factory $refinery)
getConfigInput(Setup\Config $config=null)
getUpdateObjective(Setup\Config $config=null)
getInstallObjective(Setup\Config $config=null)
A transformation is a function from one datatype to another.
A agent is some component that performs part of the setup process.
Definition: Agent.php:14
A configuration for the setup.
Definition: Config.php:11
An objective is a desired state of the system that is supposed to be created by the setup.
Definition: Objective.php:15
A component is the most general form of an entity in the UI.
Definition: Component.php:14
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition: metadata.php:68
Class Factory.
$data
Definition: storeScorm.php:23