3 declare(strict_types=1);
    48         $this->log = $DIC->logger()->wsrv();
    54         if (self::$instance) {
    55             return self::$instance;
    70         return 'http://' . $this->
getHost() . 
':' . $this->
getPort() . 
'/' . self::RPC_SERVER_PATH;
    75         if ($this->rpc_host !== 
'') {
    78         return $this->rpc_host = (string) $this->
settings->get(
'rpc_server_host');
    83         $this->rpc_host = $a_host;
    88         if ($this->rpc_port !== 
'') {
    91         return $this->rpc_port = (string) $this->
settings->get(
'rpc_server_port');
    94     public function setPort(
string $a_port): void
    96         $this->rpc_port = $a_port;
   101         return self::RPC_SERVER_PATH;
   116             $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. 
 
isEnabled()
Returns true if server ip and port are set. 
 
Class for storing all rpc communication settings.