XML_RPC2
[ class tree: XML_RPC2 ] [ index: XML_RPC2 ] [ all elements ]

Class: XML_RPC2_Backend

Source Location: /XML_RPC2-1.1.2/XML/RPC2/Backend.php

Class Overview


XML_RPC Backend class. The backend is responsible for the actual execution of a request, as well as payload encoding and decoding.


Author(s):

Copyright:

  • 2004-2006 Sergio Carvalho

Variables

Methods


Inherited Variables

Inherited Methods


Class Details

[line 71]
XML_RPC Backend class. The backend is responsible for the actual execution of a request, as well as payload encoding and decoding.

The only external usage of this class is when explicitely setting the backend, as in

  1.   // or
  2.   XML_RPC2_Backend::setBackend('xmlrpcext');
Note that if you do not explicitely set the backend, it will be selected automatically.

Internally, this class provides methods to obtain the relevant backend classes:

  • The server class
  • The client class
  • The value class



[ Top ]


Class Variables

$currentBackend =

[line 81]

current backend
  • Access: protected

Type:   string


[ Top ]



Method Detail

getBackend   [line 134]

string getBackend( )

Backend getter.

Return the current backend name. If no backend was previously selected select one and set it.

The xmlrpcext backend is preferred, and will be automatically selected when no explicit backend has been set and the xmlrpc extension exists. If it does not exist, then the php backend is selected.

  • Return: The current backend
  • Access: protected

[ Top ]

getClientClassname   [line 170]

string getClientClassname( )

Include the relevant php files for the client class, and return the backend client class name.
  • Return: The Client class name
  • Access: public

[ Top ]

getServerClassname   [line 156]

string getServerClassname( )

Include the relevant php files for the server class, and return the backend server class name.
  • Return: The Server class name
  • Access: public

[ Top ]

getValueClassname   [line 184]

string getValueClassname( )

Include the relevant php files for the value class, and return the backend value class name.
  • Return: The Value class name
  • Access: public

[ Top ]

setBackend   [line 99]

void setBackend( string $backend)

Backend setter.

Currently, two backends exist: 'php' and 'XMLRPCext'. The PHP backend has no external dependencies, while the xmlrpcext requires the xmlrpc extension.

The XMLRPCext backend is quite faster, and will be automatically selected when no explicit backend has been set and the extension is available.

  • Access: public

Parameters:

string   $backend   —  The backend to select. Either 'php' or 'XMLRPCext'.

[ Top ]


Documentation generated on Mon, 11 Mar 2019 15:56:38 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.