ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilRpcClientFactory Class Reference

Factory for ILIAS rpc client More...

+ Collaboration diagram for ilRpcClientFactory:

Static Public Member Functions

static factory ($a_package, $a_timeout=0)
 Creates an ilRpcClient instance to our ilServer. More...
 

Detailed Description

Factory for ILIAS rpc client

Author
Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
Version
$Id$

Definition at line 30 of file class.ilRpcClientFactory.php.

Member Function Documentation

◆ factory()

static ilRpcClientFactory::factory (   $a_package,
  $a_timeout = 0 
)
static

Creates an ilRpcClient instance to our ilServer.

Parameters
string$a_packagePackage name
int$a_timeoutThe maximum number of seconds to allow ilRpcClient to connect.
Returns
ilRpcClient

Definition at line 40 of file class.ilRpcClientFactory.php.

References $client, and ilRPCServerSettings\getInstance().

Referenced by ilScorm2004Export\buildExportFilePDF(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilLuceneSearcher\highlight(), ilCertificateRpcClientFactoryHelper\ilFO2PDF(), ilLuceneSearcher\performSearch(), ilRPCServerSettings\pingServer(), ilObjSearchSettingsGUI\refreshLuceneSettings(), ilLuceneIndexer\run(), ilMailLuceneSearcher\search(), and ilLuceneIndexer\updateLuceneIndex().

41  {
42  include_once './Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
43 
44  include_once './Services/WebServices/RPC/classes/class.ilRpcClient.php';
45  $client = new ilRpcClient(ilRPCServerSettings::getInstance()->getServerUrl(), $a_package . '.', $a_timeout, 'UTF-8');
46  return $client;
47  }
if($_SERVER['argc']< 4) $client
Definition: cron.php:12
Class ilRpcClient.
static getInstance()
Get singelton instance.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: