ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ilHttpSetupConfig Class Reference
+ Inheritance diagram for ilHttpSetupConfig:
+ Collaboration diagram for ilHttpSetupConfig:

Public Member Functions

 __construct (string $http_path, bool $autodetection_enabled, bool $forced, ?string $header_name, ?string $header_value, bool $proxy_enabled, ?string $proxy_host, ?string $proxy_port)
 
 isForced ()
 
 getHttpPath ()
 
 isAutodetectionEnabled ()
 
 getHeaderName ()
 
 getHeaderValue ()
 
 isProxyEnabled ()
 
 getProxyHost ()
 
 getProxyPort ()
 

Protected Attributes

string $http_path
 
bool $forced = false
 
bool $autodetection_enabled
 
string $header_name
 
string $header_value
 
bool $proxy_enabled
 
string $proxy_host
 
string $proxy_port
 

Detailed Description

Definition at line 18 of file class.ilHttpSetupConfig.php.

Constructor & Destructor Documentation

◆ __construct()

ilHttpSetupConfig::__construct ( string  $http_path,
bool  $autodetection_enabled,
bool  $forced,
?string  $header_name,
?string  $header_value,
bool  $proxy_enabled,
?string  $proxy_host,
?string  $proxy_port 
)

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

References $autodetection_enabled, $forced, $header_name, $header_value, $http_path, $proxy_enabled, $proxy_host, and $proxy_port.

39  {
41  throw new \InvalidArgumentException(
42  "Expected header name and value for https autodetection if that feature is enabled."
43  );
44  }
45  if ($proxy_enabled && (!$proxy_host || !$proxy_port)) {
46  throw new \InvalidArgumentException(
47  "Expected setting for proxy host and port if proxy is enabled."
48  );
49  }
50  $this->http_path = $http_path;
51  $this->autodetection_enabled = $autodetection_enabled;
52  $this->forced = $forced;
53  $this->header_name = $header_name;
54  $this->header_value = $header_value;
55  $this->proxy_enabled = $proxy_enabled;
56  $this->proxy_host = $proxy_host;
57  $this->proxy_port = $proxy_port;
58  }

Member Function Documentation

◆ getHeaderName()

ilHttpSetupConfig::getHeaderName ( )

Definition at line 76 of file class.ilHttpSetupConfig.php.

References $header_name.

76  : ?string
77  {
78  return $this->header_name;
79  }

◆ getHeaderValue()

ilHttpSetupConfig::getHeaderValue ( )

Definition at line 81 of file class.ilHttpSetupConfig.php.

References $header_value.

81  : ?string
82  {
83  return $this->header_value;
84  }

◆ getHttpPath()

ilHttpSetupConfig::getHttpPath ( )

Definition at line 66 of file class.ilHttpSetupConfig.php.

References $http_path.

Referenced by ilNICKeyRegisteredObjective\getURLStringForNIC().

66  : string
67  {
68  return $this->http_path;
69  }
+ Here is the caller graph for this function:

◆ getProxyHost()

ilHttpSetupConfig::getProxyHost ( )

Definition at line 91 of file class.ilHttpSetupConfig.php.

References $proxy_host.

91  : ?string
92  {
93  return $this->proxy_host;
94  }

◆ getProxyPort()

ilHttpSetupConfig::getProxyPort ( )

Definition at line 96 of file class.ilHttpSetupConfig.php.

References $proxy_port.

96  : ?string
97  {
98  return $this->proxy_port;
99  }

◆ isAutodetectionEnabled()

ilHttpSetupConfig::isAutodetectionEnabled ( )

Definition at line 71 of file class.ilHttpSetupConfig.php.

References $autodetection_enabled.

71  : bool
72  {
74  }

◆ isForced()

ilHttpSetupConfig::isForced ( )

Definition at line 61 of file class.ilHttpSetupConfig.php.

References $forced.

61  : bool
62  {
63  return $this->forced;
64  }

◆ isProxyEnabled()

ilHttpSetupConfig::isProxyEnabled ( )

Definition at line 86 of file class.ilHttpSetupConfig.php.

References $proxy_enabled.

86  : bool
87  {
88  return $this->proxy_enabled;
89  }

Field Documentation

◆ $autodetection_enabled

bool ilHttpSetupConfig::$autodetection_enabled
protected

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

Referenced by __construct(), and isAutodetectionEnabled().

◆ $forced

bool ilHttpSetupConfig::$forced = false
protected

Definition at line 21 of file class.ilHttpSetupConfig.php.

Referenced by __construct(), and isForced().

◆ $header_name

string ilHttpSetupConfig::$header_name
protected

Definition at line 23 of file class.ilHttpSetupConfig.php.

Referenced by __construct(), and getHeaderName().

◆ $header_value

string ilHttpSetupConfig::$header_value
protected

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

Referenced by __construct(), and getHeaderValue().

◆ $http_path

string ilHttpSetupConfig::$http_path
protected

Definition at line 20 of file class.ilHttpSetupConfig.php.

Referenced by __construct(), and getHttpPath().

◆ $proxy_enabled

bool ilHttpSetupConfig::$proxy_enabled
protected

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

Referenced by __construct(), and isProxyEnabled().

◆ $proxy_host

string ilHttpSetupConfig::$proxy_host
protected

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

Referenced by __construct(), and getProxyHost().

◆ $proxy_port

string ilHttpSetupConfig::$proxy_port
protected

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

Referenced by __construct(), and getProxyPort().


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