ILIAS
release_8 Revision v8.19
◀ 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
n
o
p
r
s
t
u
v
w
x
+
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
j
l
m
p
s
t
u
+
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
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilProxySettings.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
/******************************************************************************
5
*
6
* This file is part of ILIAS, a powerful learning management system.
7
*
8
* ILIAS is licensed with the GPL-3.0, you should have received a copy
9
* of said license along with the source code.
10
*
11
* If this is not the case or you just want to try ILIAS, you'll find
12
* us at:
13
* https://www.ilias.de
14
* https://github.com/ILIAS-eLearning
15
*
16
*****************************************************************************/
17
22
class
ilProxySettings
23
{
24
protected
static
?
ilProxySettings
$_instance
= null;
25
protected
string
$host
=
''
;
26
protected
int
$port
= 80;
27
protected
bool
$active
=
false
;
28
protected
ilSetting
$setting
;
29
30
protected
function
__construct
()
31
{
32
global
$DIC
;
33
34
$this->setting = $DIC->settings();
35
$this->
read
();
36
}
37
38
public
static
function
_getInstance
():
ilProxySettings
39
{
40
if
(null === self::$_instance) {
41
self::$_instance =
new
self
();
42
}
43
44
return
self::$_instance;
45
}
46
47
protected
function
read
(): void
48
{
49
$this->host = (string) $this->setting->get(
'proxy_host'
);
50
$this->port = (
int
) $this->setting->get(
'proxy_port'
);
51
$this->active = (bool) $this->setting->get(
'proxy_status'
);
52
}
53
54
public
function
isActive
(): bool
55
{
56
return
$this->active
;
57
}
58
59
public
function
getHost
(): string
60
{
61
return
$this->host
;
62
}
63
64
public
function
getPort
():
int
65
{
66
return
$this->port
;
67
}
68
}
ilProxySettings\read
read()
Definition:
class.ilProxySettings.php:47
ilProxySettings\$active
bool $active
Definition:
class.ilProxySettings.php:27
ilProxySettings
class ilProxySettings
Definition:
class.ilProxySettings.php:22
ilProxySettings\getHost
getHost()
Definition:
class.ilProxySettings.php:59
ilProxySettings\$_instance
static ilProxySettings $_instance
Definition:
class.ilProxySettings.php:24
$DIC
global $DIC
Definition:
feed.php:28
ilProxySettings\__construct
__construct()
Definition:
class.ilProxySettings.php:30
ilProxySettings\getPort
getPort()
Definition:
class.ilProxySettings.php:64
ilProxySettings\$host
string $host
Definition:
class.ilProxySettings.php:25
ilProxySettings\$setting
ilSetting $setting
Definition:
class.ilProxySettings.php:28
ilProxySettings\isActive
isActive()
Definition:
class.ilProxySettings.php:54
ilProxySettings\$port
int $port
Definition:
class.ilProxySettings.php:26
ilProxySettings\_getInstance
static _getInstance()
Definition:
class.ilProxySettings.php:38
ILIAS\Repository\int
int(string $key)
Definition:
trait.BaseGUIRequest.php:61
ilSetting
Services
Http
classes
class.ilProxySettings.php
Generated on Tue Apr 1 2025 22:02:22 for ILIAS by
1.8.13 (using
Doxyfile
)