ILIAS
release_6 Revision v6.24-5-g0c8bfefb3b8
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
p
s
t
w
+
Functions
_
a
b
c
f
g
h
i
s
t
w
+
Variables
$
c
d
e
f
g
h
j
l
m
p
s
t
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
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
5
use
ILIAS\Setup
;
6
use
ILIAS\Refinery
;
7
use
ILIAS\Data
;
8
use
ILIAS\UI
;
9
10
class
ilHttpSetupAgent
implements
Setup\Agent
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
42
public
function
getArrayToConfigTransformation
() :
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
}
68
72
public
function
getInstallObjective
(Setup\
Config
$config
= null) : Setup\
Objective
73
{
74
return
new
Setup\ObjectiveCollection(
75
"Complete objectives from Services/Http"
,
76
false
,
77
new
ilHttpConfigStoredObjective
(
$config
)
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
}
UI
Class Factory.
$data
$data
Definition:
storeScorm.php:23
ILIAS\Setup\Objective
An objective is a desired state of the system that is supposed to be created by the setup...
Definition:
Objective.php:14
ilHttpSetupAgent\__construct
__construct(Refinery\Factory $refinery)
Definition:
class.ilHttpSetupAgent.php:17
ILIAS\Refinery
Definition:
Constraint.php:5
$config
if(!array_key_exists('PATH_INFO', $_SERVER)) $config
Definition:
metadata.php:68
ILIAS\UI\Component
ilHttpConfigStoredObjective
Definition:
class.ilHttpConfigStoredObjective.php:7
ilHttpSetupAgent\hasConfig
hasConfig()
Definition:
class.ilHttpSetupAgent.php:26
ilHttpSetupAgent\$refinery
$refinery
Definition:
class.ilHttpSetupAgent.php:15
Factory
ilHttpSetupAgent\getUpdateObjective
getUpdateObjective(Setup\Config $config=null)
Definition:
class.ilHttpSetupAgent.php:84
Input
ILIAS\Data\Factory
Builds data types.
Definition:
Factory.php:19
ilHttpSetupAgent\getInstallObjective
getInstallObjective(Setup\Config $config=null)
Definition:
class.ilHttpSetupAgent.php:72
ILIAS\Setup
Definition:
AchievementTracker.php:5
ilHttpSetupAgent\getBuildArtifactObjective
getBuildArtifactObjective()
Definition:
class.ilHttpSetupAgent.php:92
ILIAS\Refinery\Transformation
A transformation is a function from one datatype to another.
Definition:
Transformation.php:17
ILIAS\UI
ILIAS\Setup\Config
A configuration for the setup.
Definition:
Config.php:10
ilHttpSetupAgent
Definition:
class.ilHttpSetupAgent.php:10
ilHttpSetupAgent\getConfigInput
getConfigInput(Setup\Config $config=null)
Definition:
class.ilHttpSetupAgent.php:34
ILIAS\Data
Definition:
Alphanumeric.php:10
ilHttpSetupAgent\getArrayToConfigTransformation
getArrayToConfigTransformation()
Definition:
class.ilHttpSetupAgent.php:42
Services
Http
classes
Setup
class.ilHttpSetupAgent.php
Generated on Thu Apr 10 2025 20:01:20 for ILIAS by
1.8.13 (using
Doxyfile
)