19 declare(strict_types=1);
41 $this->log = $DIC->logger()->wsrv();
47 if (self::$instance) {
48 return self::$instance;
63 return 'http://' . $this->
getHost() .
':' . $this->
getPort() .
'/' . self::RPC_SERVER_PATH;
68 if ($this->rpc_host !==
'') {
71 return $this->rpc_host = (string) $this->
settings->get(
'rpc_server_host');
76 $this->rpc_host = $a_host;
81 if ($this->rpc_port !==
'') {
84 return $this->rpc_port = (string) $this->
settings->get(
'rpc_server_port');
87 public function setPort(
string $a_port): void
89 $this->rpc_port = $a_port;
94 return self::RPC_SERVER_PATH;
109 $this->log->warning(
'Calling RPC server failed with message: ' . $e->getMessage());
static ilRPCServerSettings $instance
static factory(string $a_package, int $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
isEnabled()
Returns true if server ip and port are set.
Class for storing all rpc communication settings.