ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
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, ?string $header_name, ?string $header_value, bool $proxy_enabled, ?string $proxy_host, ?string $proxy_port)
 
 getHttpPath ()
 
 isAutodetectionEnabled ()
 
 getHeaderName ()
 
 getHeaderValue ()
 
 isProxyEnabled ()
 
 getProxyHost ()
 
 getProxyPort ()
 

Protected Attributes

 $http_path
 
 $autodetection_enabled
 
 $header_name
 
 $header_value
 
 $proxy_enabled
 
 $proxy_host
 
 $proxy_port
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

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

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

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

53  {
55  throw new \InvalidArgumentException(
56  "Expected header name and value for https autodetection if that feature is enabled."
57  );
58  }
59  if ($proxy_enabled && (!$proxy_host || !$proxy_port)) {
60  throw new \InvalidArgumentException(
61  "Expected setting for proxy host and port if proxy is enabled."
62  );
63  }
64  $this->http_path = $http_path;
65  $this->autodetection_enabled = $autodetection_enabled;
66  $this->header_name = $header_name;
67  $this->header_value = $header_value;
68  $this->proxy_enabled = $proxy_enabled;
69  $this->proxy_host = $proxy_host;
70  $this->proxy_port = $proxy_port;
71  }

Member Function Documentation

◆ getHeaderName()

ilHttpSetupConfig::getHeaderName ( )

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

References $header_name.

83  : ?string
84  {
85  return $this->header_name;
86  }

◆ getHeaderValue()

ilHttpSetupConfig::getHeaderValue ( )

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

References $header_value.

88  : ?string
89  {
90  return $this->header_value;
91  }

◆ getHttpPath()

ilHttpSetupConfig::getHttpPath ( )

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

References $http_path.

Referenced by ilNICKeyRegisteredObjective\getURLStringForNIC().

73  : string
74  {
75  return $this->http_path;
76  }
+ Here is the caller graph for this function:

◆ getProxyHost()

ilHttpSetupConfig::getProxyHost ( )

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

References $proxy_host.

98  : ?string
99  {
100  return $this->proxy_host;
101  }

◆ getProxyPort()

ilHttpSetupConfig::getProxyPort ( )

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

References $proxy_port.

103  : ?string
104  {
105  return $this->proxy_port;
106  }

◆ isAutodetectionEnabled()

ilHttpSetupConfig::isAutodetectionEnabled ( )

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

References $autodetection_enabled.

78  : bool
79  {
81  }

◆ isProxyEnabled()

ilHttpSetupConfig::isProxyEnabled ( )

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

References $proxy_enabled.

93  : bool
94  {
95  return $this->proxy_enabled;
96  }

Field Documentation

◆ $autodetection_enabled

ilHttpSetupConfig::$autodetection_enabled
protected

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

Referenced by __construct(), and isAutodetectionEnabled().

◆ $header_name

ilHttpSetupConfig::$header_name
protected

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

Referenced by __construct(), and getHeaderName().

◆ $header_value

ilHttpSetupConfig::$header_value
protected

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

Referenced by __construct(), and getHeaderValue().

◆ $http_path

ilHttpSetupConfig::$http_path
protected

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

Referenced by __construct(), and getHttpPath().

◆ $proxy_enabled

ilHttpSetupConfig::$proxy_enabled
protected

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

Referenced by __construct(), and isProxyEnabled().

◆ $proxy_host

ilHttpSetupConfig::$proxy_host
protected

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

Referenced by __construct(), and getProxyHost().

◆ $proxy_port

ilHttpSetupConfig::$proxy_port
protected

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

Referenced by __construct(), and getProxyPort().


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