ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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 ilMailLuceneSearcher\__construct(), ilScorm2004Export\buildExportFilePDF(), ilCertificate\createPreview(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilLuceneSearcher\highlight(), ilCertificate\outCertificate(), ilLuceneSearcher\performSearch(), ilRPCServerSettings\pingServer(), ilObjSearchSettingsGUI\refreshLuceneSettings(), ilLuceneIndexer\run(), 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  }
Class ilRpcClient.
$client
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: