You are here

function xmlrpc_server_set in Drupal 7

Same name and namespace in other branches
  1. 4 includes/xmlrpcs.inc \xmlrpc_server_set()
  2. 5 includes/xmlrpcs.inc \xmlrpc_server_set()
  3. 6 includes/xmlrpcs.inc \xmlrpc_server_set()

Stores a copy of an XML-RPC request temporarily.

Parameters

object $xmlrpc_server: (optional) Request object created by xmlrpc_server(). Omit to leave the previous server object saved.

Return value

The latest stored request.

See also

xmlrpc_server_get()

2 calls to xmlrpc_server_set()
xmlrpc_server in includes/xmlrpcs.inc
Invokes XML-RPC methods on this server.
xmlrpc_server_get in includes/xmlrpcs.inc
Retrieves the latest stored XML-RPC request.

File

includes/xmlrpcs.inc, line 146
Provides API for defining and handling XML-RPC requests.

Code

function xmlrpc_server_set($xmlrpc_server = NULL) {
  static $server;
  if (!isset($server)) {
    $server = $xmlrpc_server;
  }
  return $server;
}