3 /******************************************************************************
7 * This file is only used to insure backwards compatibility
8 * with the API of the library <= rev. 3
9 *****************************************************************************/
11 include_once(__DIR__.'/../src/Wrapper.php');
13 /* Expose as global functions the ones which are now class methods */
15 function php_2_xmlrpc_type($phpType)
17 $wrapper = new PhpXmlRpc\Wrapper();
18 return $wrapper->php_2_xmlrpc_type($phpType);
21 function xmlrpc_2_php_type($xmlrpcType)
23 $wrapper = new PhpXmlRpc\Wrapper();
24 return $wrapper->xmlrpc_2_php_type($xmlrpcType);
27 function wrap_php_function($funcName, $newFuncName='', $extraOptions=array())
29 $wrapper = new PhpXmlRpc\Wrapper();
30 return $wrapper->wrap_php_function($funcName, $newFuncName, $extraOptions);
33 function wrap_php_class($className, $extraOptions=array())
35 $wrapper = new PhpXmlRpc\Wrapper();
36 return $wrapper->wrap_php_class($className, $extraOptions);
39 function wrap_xmlrpc_method($client, $methodName, $extraOptions=0, $timeout=0, $protocol='', $newFuncName='')
41 $wrapper = new PhpXmlRpc\Wrapper();
42 return $wrapper->wrap_xmlrpc_method($client, $methodName, $extraOptions, $timeout, $protocol, $newFuncName);
45 function wrap_xmlrpc_server($client, $extraOptions=array())
47 $wrapper = new PhpXmlRpc\Wrapper();
48 return $wrapper->wrap_xmlrpc_server($client, $extraOptions);