ILIAS  release_4-4 Revision
All Data Structures Namespaces Files Functions Variables Modules Pages
ilRpcClientFactory Class Reference

Factory for PEAR XML rpc2 clients More...

+ Collaboration diagram for ilRpcClientFactory:

Static Public Member Functions

static factory ($a_package)
 Create an XML_RPC2 client instance. More...
 

Detailed Description

Factory for PEAR XML rpc2 clients

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

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

Member Function Documentation

◆ factory()

static ilRpcClientFactory::factory (   $a_package)
static

Create an XML_RPC2 client instance.

We use Php as backend, since xmlrpc encodes utf8 as html entity

Parameters
string$a_packagePackage name
Returns

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

References $client, XML_RPC2_Client\create(), and ilRPCServerSettings\getInstance().

Referenced by ilMailLuceneSearcher\__construct(), ilScorm2004Export\buildExportFilePDF(), ilCertificate\createPreview(), ilObjSurvey\deliverPDFfromFO(), ilObjTest\deliverPDFfromFO(), ilLuceneSearcher\highlight(), ilCertificate\outCertificate(), ilLuceneSearcher\performSearch(), ilRPCServerSettings\pingServer(), ilLuceneIndexer\run(), ilObjSearchSettingsGUI\saveLuceneSettingsObject(), and ilLuceneIndexer\updateLuceneIndex().

43  {
44  include_once './Services/WebServices/RPC/classes/class.ilRPCServerSettings.php';
45 
47  ilRPCServerSettings::getInstance()->getServerUrl(),
48  array(
49  'prefix' => $a_package.'.',
50  'encoding' => 'utf-8',
51  'backend' => 'Php',
52  'debug' => false
53  )
54  );
55  return $client;
56  }
static create($uri, $options=array())
Factory method to select, create and return a XML_RPC2_Client backend.
Definition: Client.php:205
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: