function xmlrpc_message in xmlrpc 8
Constructs an object representing an XML-RPC message.
Parameters
string $message: An XML message string.
Return value
object An XML-RPC object containing the message.
See also
3 calls to xmlrpc_message()
- XmlRpcBasicTest::testInvalidMessageParsing in src/
Tests/ XmlRpcBasicTest.php - Ensure that XML-RPC correctly handles invalid messages when parsing.
- xmlrpc_server in ./
xmlrpc.server.inc - Invokes XML-RPC methods on this server.
- _xmlrpc in ./
xmlrpc.inc - Performs one or more XML-RPC requests.
File
- ./
xmlrpc.inc, line 155 - Drupal XML-RPC library.
Code
function xmlrpc_message($message) {
$xmlrpc_message = new stdClass();
// The stack used to keep track of the current array/struct.
$xmlrpc_message->array_structs = [];
// The stack used to keep track of if things are structs or array.
$xmlrpc_message->array_structs_types = [];
// A stack as well.
$xmlrpc_message->current_struct_name = [];
$xmlrpc_message->message = $message;
return $xmlrpc_message;
}