4 require_once
'./Services/Http/exceptions/class.ilProxyException.php';
93 if(null === self::$_instance)
95 self::$_instance =
new self();
98 return self::$_instance;
112 $this->
setHost($ilSetting->get(
'proxy_host'));
113 $this->
setPort($ilSetting->get(
'proxy_port'));
114 $this->
isActive((
bool)$ilSetting->get(
'proxy_status'));
208 $ilSetting->set(
'proxy_host', $this->
getHost());
209 $ilSetting->set(
'proxy_port', $this->
getPort());
210 $ilSetting->set(
'proxy_status', (
int)$this->
isActive());
226 require_once
'Services/PEAR/lib/Net/Socket.php';
231 if(!is_bool($response))
234 throw new ilProxyException(strlen($response) ? $response : $lng->txt(
'proxy_not_connectable'));
read()
Fetches data from database.
getHost()
Getter for host.
isActive($status=null)
Getter/Setter for status.
Class for proxy related exception handling in ILIAS.
checkConnection()
Verifies the proxy server connection.
setPort($port)
Setter for port.
__construct()
Constructor.
save()
Saves the current data in database.
getPort()
Getter for port.
const PEAR_ERROR_RETURN
#+ ERROR constants
setHost($host)
Setter for host.
Generalized Socket class.
static _getInstance()
Getter for unique instance.