You are here

function xmlrpc_server_set in xmlrpc 8

Stores a copy of an XML-RPC request temporarily.

Parameters

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

Return value

null|object The latest stored request.

See also

xmlrpc_server_get()

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

File

./xmlrpc.server.inc, line 158
Page callback file for the xmlrpc module.

Code

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