ILIAS  release_7 Revision v7.30-3-g800a261c036
class.ilHttpSetupConfig.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
6
8{
12 protected $http_path;
13
18
22 protected $header_name;
23
27 protected $header_value;
28
32 protected $proxy_enabled;
33
37 protected $proxy_host;
38
42 protected $proxy_port;
43
44
45 public function __construct(
46 string $http_path,
48 ?string $header_name,
49 ?string $header_value,
50 bool $proxy_enabled,
51 ?string $proxy_host,
52 ?string $proxy_port
53 ) {
55 throw new \InvalidArgumentException(
56 "Expected header name and value for https autodetection if that feature is enabled."
57 );
58 }
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 }
72
73 public function getHttpPath() : string
74 {
75 return $this->http_path;
76 }
77
78 public function isAutodetectionEnabled() : bool
79 {
81 }
82
83 public function getHeaderName() : ?string
84 {
85 return $this->header_name;
86 }
87
88 public function getHeaderValue() : ?string
89 {
91 }
92
93 public function isProxyEnabled() : bool
94 {
96 }
97
98 public function getProxyHost() : ?string
99 {
100 return $this->proxy_host;
101 }
102
103 public function getProxyPort() : ?string
104 {
105 return $this->proxy_port;
106 }
107}
An exception for terminatinating execution or to throw for unit testing.
__construct(string $http_path, bool $autodetection_enabled, ?string $header_name, ?string $header_value, bool $proxy_enabled, ?string $proxy_host, ?string $proxy_port)
A configuration for the setup.
Definition: Config.php:11
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...