function xmlrpc_server_method_signature in Drupal 4
Same name and namespace in other branches
- 5 includes/xmlrpcs.inc \xmlrpc_server_method_signature()
- 6 includes/xmlrpcs.inc \xmlrpc_server_method_signature()
- 7 includes/xmlrpcs.inc \xmlrpc_server_method_signature()
XML-RPC method system.methodSignature maps to this function.
Parameters
$methodname: Name of method for which we return a method signature.
Return value
array An array of types representing the method signature of the function that the methodname maps to. The methodSignature of this function is 'array', 'string' because it takes an array and returns a string.
1 string reference to 'xmlrpc_server_method_signature'
- xmlrpc_server in includes/
xmlrpcs.inc - The main entry point for XML-RPC requests.
File
- includes/
xmlrpcs.inc, line 292
Code
function xmlrpc_server_method_signature($methodname) {
$xmlrpc_server = xmlrpc_server_get();
if (!isset($xmlrpc_server->callbacks[$methodname])) {
return xmlrpc_error(-32601, t('Server error. Requested method %methodname not specified.', array(
"%methodname" => $methodname,
)));
}
if (!is_array($xmlrpc_server->signatures[$methodname])) {
return xmlrpc_error(-32601, t('Server error. Requested method %methodname signature not specified.', array(
"%methodname" => $methodname,
)));
}
// We array of types
$return = array();
foreach ($xmlrpc_server->signatures[$methodname] as $type) {
$return[] = $type;
}
return $return;
}