ILIAS  release_8 Revision v8.24
ilProxySettings Class Reference

class ilProxySettings More...

+ Collaboration diagram for ilProxySettings:

Public Member Functions

 isActive ()
 
 getHost ()
 
 getPort ()
 

Static Public Member Functions

static _getInstance ()
 

Protected Member Functions

 __construct ()
 
 read ()
 

Protected Attributes

string $host = ''
 
int $port = 80
 
bool $active = false
 
ilSetting $setting
 

Static Protected Attributes

static ilProxySettings $_instance = null
 

Detailed Description

class ilProxySettings

Author
Michael Jansen mjans.nosp@m.en@d.nosp@m.ataba.nosp@m.y.de

Definition at line 22 of file class.ilProxySettings.php.

Constructor & Destructor Documentation

◆ __construct()

ilProxySettings::__construct ( )
protected

Definition at line 30 of file class.ilProxySettings.php.

31 {
32 global $DIC;
33
34 $this->setting = $DIC->settings();
35 $this->read();
36 }
global $DIC
Definition: feed.php:28

References $DIC, and read().

+ Here is the call graph for this function:

Member Function Documentation

◆ _getInstance()

static ilProxySettings::_getInstance ( )
static

Definition at line 38 of file class.ilProxySettings.php.

39 {
40 if (null === self::$_instance) {
41 self::$_instance = new self();
42 }
43
44 return self::$_instance;
45 }
class ilProxySettings
static ilProxySettings $_instance

References $_instance.

Referenced by ilAuthProviderOpenIdConnect\doAuthentication(), and ilCurlConnection\init().

+ Here is the caller graph for this function:

◆ getHost()

ilProxySettings::getHost ( )

Definition at line 59 of file class.ilProxySettings.php.

59 : string
60 {
61 return $this->host;
62 }

References $host.

◆ getPort()

ilProxySettings::getPort ( )

Definition at line 64 of file class.ilProxySettings.php.

64 : int
65 {
66 return $this->port;
67 }

References $port.

◆ isActive()

ilProxySettings::isActive ( )

Definition at line 54 of file class.ilProxySettings.php.

54 : bool
55 {
56 return $this->active;
57 }

References $active.

◆ read()

ilProxySettings::read ( )
protected

Definition at line 47 of file class.ilProxySettings.php.

47 : 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 }

References ILIAS\Repository\int().

Referenced by __construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $_instance

ilProxySettings ilProxySettings::$_instance = null
staticprotected

Definition at line 24 of file class.ilProxySettings.php.

Referenced by _getInstance().

◆ $active

bool ilProxySettings::$active = false
protected

Definition at line 27 of file class.ilProxySettings.php.

Referenced by isActive().

◆ $host

string ilProxySettings::$host = ''
protected

Definition at line 25 of file class.ilProxySettings.php.

Referenced by getHost().

◆ $port

int ilProxySettings::$port = 80
protected

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

Referenced by getPort().

◆ $setting

ilSetting ilProxySettings::$setting
protected

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


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