34 define(
"RPC_SERVER_PATH",
"/RPC2");
35 define(
"RPC_SERVER_ALIVE",
true);
62 $this->err =&$ilError;
63 $this->
ilias =&$ilias;
72 if (self::$instance) {
73 return self::$instance;
95 if (strlen($this->rpc_host)) {
98 return $this->rpc_host = $this->
ilias->getSetting(
'rpc_server_host');
102 $this->rpc_host = $a_host;
106 if (strlen($this->rpc_port)) {
109 return $this->rpc_port = $this->
ilias->getSetting(
'rpc_server_port');
113 $this->rpc_port = $a_port;
122 $this->
ilias->setSetting(
'rpc_server_host', $this->
getHost());
123 $this->
ilias->setSetting(
'rpc_server_port', $this->
getPort());
130 include_once
'./Services/WebServices/RPC/classes/class.ilRpcClientFactory.php';
136 $ilLog->write(__METHOD__ .
': ' . $e->getMessage());
static factory($a_package, $a_timeout=0)
Creates an ilRpcClient instance to our ilServer.
isEnabled()
Returns true if server ip and port are set.
redirection script todo: (a better solution should control the processing via a xml file) ...
__construct()
Singleton contructor.
static getInstance()
Get singelton instance.