Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: Unknown

License

Content on this site is copyright © 2005 - 2008 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5. Some parts of this website may be subject to other licenses.

 Class xmlrpc_server

Description

Located in /phpxmlrpc/xmlrpcs.php (line 432)

Class xmlrpc_server
Method Summary
Constructor xmlrpc_server xmlrpc_server ([ $dispMap = null], [ $serviceNow = true], array $dispmap, boolean $servicenow)
Method void add_to_map (string $methodname, string $function, [array $sig = null], [string $doc = ''])
Method void echoInput ()
Method string serializeDebug ([string $charset_encoding = ''])
Method xmlrpcresp service ([string $data = null], [ $return_payload = false])
Method void setDebug (integer $in)
Variables
mixed $accepted_charset_encodings = array() (line 457)
mixed $accepted_compression = array() (line 453)

List of http compression methods accepted by the server for requests.

NB: PHP supports deflate, gzip compressions out of the box if compiled w. zlib

mixed $allow_system_funcs = true (line 455)
mixed $compress_response = false (line 448)

When set to true, it will enable HTTP compression of the response, in case the client has declared its support for compression in the request.

mixed $debug = 1 (line 443)
mixed $debug_info = '' (line 469)
mixed $dmap = array() (line 435)
mixed $functions_parameters_type = 'xmlrpcvals' (line 441)

Defines how functions in dmap will be invokde: either using an xmlrpc msg object or plain php values.

valid strings are 'xmlrpcvals', 'phpvals' or 'epivals'

mixed $response_charset_encoding = '' (line 467)

charset encoding to be used for response.

NB: if we can, we will convert the generated response from internal_encoding to the intended one. can be: a supported xml encoding (only UTF-8 and ISO-8859-1 at present, unless mbstring is enabled), null (leave unspecified in response, convert output stream to US_ASCII), 'default' (use xmlrpc library default as specified in xmlrpc.inc, convert output stream if needed), or 'auto' (use client-specified charset encoding or same as request if request headers do not specify it (unless request is US-ASCII: then use library default anyway). NB: pretty dangerous if you accept every charset and do not have mbstring enabled)

mixed $user_data = null (line 471)
Methods
Constructor xmlrpc_server (line 477)
xmlrpc_server xmlrpc_server ([ $dispMap = null], [ $serviceNow = true], array $dispmap, boolean $servicenow)
  • array $dispmap: the dispatch map withd efinition of exposed services
  • boolean $servicenow: set to false to prevent the server from runnung upon construction
  • $dispMap
  • $serviceNow
add_to_map (line 681)

Add a method to the dispatch map

  • access: public
void add_to_map (string $methodname, string $function, [array $sig = null], [string $doc = ''])
  • string $methodname: the name with which the method will be made available
  • string $function: the php function that will get invoked
  • array $sig: the array of valid method signatures
  • string $doc: method documentation
echoInput (line 1178)

A debugging routine: just echoes back the input packet as a string value

DEPRECATED!

void echoInput ()
serializeDebug (line 533)

Return a string with the serialized representation of all debug info

  • return: an XML comment (or two)
string serializeDebug ([string $charset_encoding = ''])
  • string $charset_encoding: the target charset encoding for the serialization
service (line 562)

Execute the xmlrpc request, printing the response

  • return: the response object (usually not used by caller...)
  • access: public
xmlrpcresp service ([string $data = null], [ $return_payload = false])
  • string $data: the request body. If null, the http POST request will be examined
  • $return_payload
setDebug (line 523)

Set debug level of server.

  • access: public
void setDebug (integer $in)
  • integer $in: debug lvl: determines info added to xmlrpc responses (as xml comments)
    1. = no debug info,
    2. = msgs set from user with debugmsg(),
    3. = add complete xmlrpc request (headers and body),
    4. = add also all processing warnings happened during method processing
    (NB: this involves setting a custom error handler, and might interfere with the standard processing of the php function exposed as method. In particular, triggering an USER_ERROR level error will not halt script execution anymore, but just end up logged in the xmlrpc response) Note that info added at elevel 2 and 3 will be base64 encoded

Documentation generated on Tue, 29 Jan 2008 18:52:55 +0000 by phpDocumentor 1.3.1