180656e5eefb80a3dfdc809c564c1d2a898b9290
[plcapi.git] / lib / xmlrpc_wrappers.inc
1 <?php
2
3 /******************************************************************************
4  *
5  *** DEPRECATED ***
6  *
7  * This file is only used to insure backwards compatibility
8  * with the API of the library <= rev. 3
9  *****************************************************************************/
10
11 include_once(__DIR__.'/../src/Wrapper.php');
12
13 /* Expose as global functions the ones which are now class methods */
14
15 function php_2_xmlrpc_type($phpType)
16 {
17     $wrapper = new PhpXmlRpc\Wrapper();
18     return $wrapper->php_2_xmlrpc_type($phpType);
19 }
20
21 function xmlrpc_2_php_type($xmlrpcType)
22 {
23     $wrapper = new PhpXmlRpc\Wrapper();
24     return $wrapper->xmlrpc_2_php_type($xmlrpcType);
25 }
26
27 function wrap_php_function($funcName, $newFuncName='', $extraOptions=array())
28 {
29     $wrapper = new PhpXmlRpc\Wrapper();
30     return $wrapper->wrap_php_function($funcName, $newFuncName, $extraOptions);
31 }
32
33 function wrap_php_class($className, $extraOptions=array())
34 {
35     $wrapper = new PhpXmlRpc\Wrapper();
36     return $wrapper->wrap_php_class($className, $extraOptions);
37 }
38
39 function wrap_xmlrpc_method($client, $methodName, $extraOptions=0, $timeout=0, $protocol='', $newFuncName='')
40 {
41     $wrapper = new PhpXmlRpc\Wrapper();
42     return $wrapper->wrap_xmlrpc_method($client, $methodName, $extraOptions, $timeout, $protocol, $newFuncName);
43 }
44
45 function wrap_xmlrpc_server($client, $extraOptions=array())
46 {
47     $wrapper = new PhpXmlRpc\Wrapper();
48     return $wrapper->wrap_xmlrpc_server($client, $extraOptions);
49 }