C:/drupal/includes/xmlrpc.inc File Reference

Go to the source code of this file.


Functions

 xmlrpc_value ($data, $type=FALSE)
 xmlrpc_value_calculate_type (&$xmlrpc_value)
 xmlrpc_value_get_xml ($xmlrpc_value)
 xmlrpc_message ($message)
 xmlrpc_message_parse (&$xmlrpc_message)
 xmlrpc_message_set ($value=NULL)
 xmlrpc_message_get ()
 xmlrpc_message_tag_open ($parser, $tag, $attr)
 xmlrpc_message_cdata ($parser, $cdata)
 xmlrpc_message_tag_close ($parser, $tag)
 xmlrpc_request ($method, $args)
 xmlrpc_error ($code=NULL, $message=NULL)
 xmlrpc_error_get_xml ($xmlrpc_error)
 xmlrpc_date ($time)
 xmlrpc_date_get_xml ($xmlrpc_date)
 xmlrpc_base64 ($data)
 xmlrpc_base64_get_xml ($xmlrpc_base64)
 _xmlrpc ()
 xmlrpc_errno ()
 xmlrpc_error_msg ()


Detailed Description

Drupal XML-RPC library. Based on the IXR - The Incutio XML-RPC Library - (c) Incutio Ltd 2002-2005 Version 1.7 (beta) - Simon Willison, 23rd May 2005 Site: Manual: This version is made available under the GNU GPL License

Definition in file xmlrpc.inc.


Function Documentation

_xmlrpc (  ) 

Execute an XML remote procedural call. This is private function; call xmlrpc() in common.inc instead of this function.

Returns:
A $xmlrpc_message object if the call succeeded; FALSE if the call failed

Definition at line 427 of file xmlrpc.inc.

References $result, $url, drupal_http_request(), t(), xmlrpc_error(), xmlrpc_message(), xmlrpc_message_parse(), and xmlrpc_request().

Here is the call graph for this function:

xmlrpc_base64 ( data  ) 

Definition at line 409 of file xmlrpc.inc.

xmlrpc_base64_get_xml ( xmlrpc_base64  ) 

Definition at line 416 of file xmlrpc.inc.

Referenced by xmlrpc_value_get_xml().

xmlrpc_date ( time  ) 

Definition at line 379 of file xmlrpc.inc.

Referenced by xmlrpc_message_tag_close().

xmlrpc_date_get_xml ( xmlrpc_date  ) 

Definition at line 405 of file xmlrpc.inc.

Referenced by xmlrpc_value_get_xml().

xmlrpc_errno (  ) 

Returns the last XML-RPC client error number

Definition at line 466 of file xmlrpc.inc.

References xmlrpc_error().

Here is the call graph for this function:

xmlrpc_error ( code = NULL,
message = NULL 
)

Definition at line 345 of file xmlrpc.inc.

References module_invoke().

Referenced by _xmlrpc(), xmlrpc_errno(), xmlrpc_error_msg(), xmlrpc_server_call(), xmlrpc_server_error(), xmlrpc_server_method_signature(), and xmlrpc_server_multicall().

Here is the call graph for this function:

xmlrpc_error_get_xml ( xmlrpc_error  ) 

Definition at line 357 of file xmlrpc.inc.

References name.

Referenced by xmlrpc_server_error().

xmlrpc_error_msg (  ) 

Returns the last XML-RPC client error message

Definition at line 474 of file xmlrpc.inc.

References xmlrpc_error().

Here is the call graph for this function:

xmlrpc_message ( message  ) 

Construct an object representing an XML-RPC message.

Parameters:
$message String containing XML as defined at
Returns:
Object

Definition at line 141 of file xmlrpc.inc.

Referenced by _xmlrpc(), and xmlrpc_server().

xmlrpc_message_cdata ( parser,
cdata 
)

Definition at line 228 of file xmlrpc.inc.

References xmlrpc_message_get(), and xmlrpc_message_set().

Here is the call graph for this function:

xmlrpc_message_get (  ) 

Definition at line 201 of file xmlrpc.inc.

References xmlrpc_message_set().

Referenced by xmlrpc_message_cdata(), xmlrpc_message_parse(), xmlrpc_message_tag_close(), and xmlrpc_message_tag_open().

Here is the call graph for this function:

xmlrpc_message_parse ( &$  xmlrpc_message  ) 

Parse an XML-RPC message. If parsing fails, the faultCode and faultString will be added to the message object.

Parameters:
$xmlrpc_message Object generated by xmlrpc_message()
Returns:
TRUE if parsing succeeded; FALSE otherwise

Definition at line 159 of file xmlrpc.inc.

References xmlrpc_message_get(), and xmlrpc_message_set().

Referenced by _xmlrpc(), and xmlrpc_server().

Here is the call graph for this function:

xmlrpc_message_set ( value = NULL  ) 

Store a copy of the $xmlrpc_message object temporarily.

Parameters:
$value Object
Returns:
The most recently stored $xmlrpc_message

Definition at line 193 of file xmlrpc.inc.

References $value.

Referenced by xmlrpc_message_cdata(), xmlrpc_message_get(), xmlrpc_message_parse(), xmlrpc_message_tag_close(), and xmlrpc_message_tag_open().

xmlrpc_message_tag_close ( parser,
tag 
)

Definition at line 234 of file xmlrpc.inc.

References $value, xmlrpc_date(), xmlrpc_message_get(), and xmlrpc_message_set().

Here is the call graph for this function:

xmlrpc_message_tag_open ( parser,
tag,
attr 
)

Definition at line 205 of file xmlrpc.inc.

References xmlrpc_message_get(), and xmlrpc_message_set().

Here is the call graph for this function:

xmlrpc_request ( method,
args 
)

Construct an object representing an XML-RPC request

Parameters:
$method The name of the method to be called
$args An array of parameters to send with the method.
Returns:
Object

Definition at line 323 of file xmlrpc.inc.

References xmlrpc_value(), and xmlrpc_value_get_xml().

Referenced by _xmlrpc().

Here is the call graph for this function:

xmlrpc_value ( data,
type = FALSE 
)

Recursively turn a data structure into objects with 'data' and 'type' attributes.

Parameters:
$data The data structure.
$type Optional type assign to $data.
Returns:
Object.

Definition at line 23 of file xmlrpc.inc.

References $type, $value, and xmlrpc_value_calculate_type().

Referenced by xmlrpc_request(), and xmlrpc_server().

Here is the call graph for this function:

xmlrpc_value_calculate_type ( &$  xmlrpc_value  ) 

Map PHP type to XML-RPC type.

Parameters:
$xmlrpc_value Variable whose type should be mapped.
Returns:
XML-RPC type as string.
See also:

Definition at line 54 of file xmlrpc.inc.

Referenced by xmlrpc_value().

xmlrpc_value_get_xml ( xmlrpc_value  ) 

Generate XML representing the given value.

Parameters:
$xmlrpc_value 
Returns:
XML representation of value.

Definition at line 90 of file xmlrpc.inc.

References $name, $return, $value, check_plain(), xmlrpc_base64_get_xml(), and xmlrpc_date_get_xml().

Referenced by xmlrpc_request(), and xmlrpc_server().

Here is the call graph for this function:


Generated on Mon Jun 2 15:08:11 2008 for SimpleTest by  1.5.5