-
Notifications
You must be signed in to change notification settings - Fork 7
/
xmlrpc.php
167 lines (151 loc) · 5.14 KB
/
xmlrpc.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
<?php
// Start of xmlrpc v.7.0.4-7ubuntu2
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Generates XML for a PHP value
* @link http://php.net/manual/en/function.xmlrpc-encode.php
* @param mixed $value
* @return string
*/
function xmlrpc_encode($value): string {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Decodes XML into native PHP types
* @link http://php.net/manual/en/function.xmlrpc-decode.php
* @param string $xml <p>
* XML response returned by XMLRPC method.
* </p>
* @param string $encoding [optional] <p>
* Input encoding supported by iconv.
* </p>
* @return mixed either an array, or an integer, or a string, or a boolean according
* to the response returned by the XMLRPC method.
*/
function xmlrpc_decode(string $xml, string $encoding = "iso-8859-1") {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Decodes XML into native PHP types
* @link http://php.net/manual/en/function.xmlrpc-decode-request.php
* @param string $xml
* @param string $method
* @param string $encoding [optional]
* @return mixed
*/
function xmlrpc_decode_request(string $xml, string &$method, string $encoding = null) {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Generates XML for a method request
* @link http://php.net/manual/en/function.xmlrpc-encode-request.php
* @param string $method <p>
* Name of the method to call.
* </p>
* @param mixed $params <p>
* Method parameters compatible with method signature.
* </p>
* @param array $output_options [optional] <p>
* Array specifying output options may contain (default values are
* emphasised):
* <p>output_type: php, xml</p>
* @return string a string containing the XML representation of the request.
*/
function xmlrpc_encode_request(string $method, $params, array $output_options = null): string {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Gets xmlrpc type for a PHP value
* @link http://php.net/manual/en/function.xmlrpc-get-type.php
* @param mixed $value <p>
* PHP value
* </p>
* @return string the XML-RPC type.
*/
function xmlrpc_get_type($value): string {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Sets xmlrpc type, base64 or datetime, for a PHP string value
* @link http://php.net/manual/en/function.xmlrpc-set-type.php
* @param string $value <p>
* Value to set the type
* </p>
* @param string $type <p>
* 'base64' or 'datetime'
* </p>
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
* If successful, <i>value</i> is converted to an object.
*/
function xmlrpc_set_type(string &$value, string $type): bool {}
/**
* (PHP 4 >= 4.3.0, PHP 5, PHP 7)<br/>
* Determines if an array value represents an XMLRPC fault
* @link http://php.net/manual/en/function.xmlrpc-is-fault.php
* @param array $arg <p>
* Array returned by <b>xmlrpc_decode</b>.
* </p>
* @return bool <b>TRUE</b> if the argument means fault, <b>FALSE</b> otherwise. Fault
* description is available in $arg["faultString"], fault
* code is in $arg["faultCode"].
*/
function xmlrpc_is_fault(array $arg): bool {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Creates an xmlrpc server
* @link http://php.net/manual/en/function.xmlrpc-server-create.php
* @return resource
*/
function xmlrpc_server_create() {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Destroys server resources
* @link http://php.net/manual/en/function.xmlrpc-server-destroy.php
* @param resource $server
* @return int
*/
function xmlrpc_server_destroy($server): int {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Register a PHP function to resource method matching method_name
* @link http://php.net/manual/en/function.xmlrpc-server-register-method.php
* @param resource $server
* @param string $method_name
* @param string $function
* @return bool
*/
function xmlrpc_server_register_method($server, string $method_name, string $function): bool {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Parses XML requests and call methods
* @link http://php.net/manual/en/function.xmlrpc-server-call-method.php
* @param resource $server
* @param string $xml
* @param mixed $user_data
* @param array $output_options [optional]
* @return string
*/
function xmlrpc_server_call_method($server, string $xml, $user_data, array $output_options = null): string {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Decodes XML into a list of method descriptions
* @link http://php.net/manual/en/function.xmlrpc-parse-method-descriptions.php
* @param string $xml
* @return array
*/
function xmlrpc_parse_method_descriptions(string $xml): array {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Adds introspection documentation
* @link http://php.net/manual/en/function.xmlrpc-server-add-introspection-data.php
* @param resource $server
* @param array $desc
* @return int
*/
function xmlrpc_server_add_introspection_data($server, array $desc): int {}
/**
* (PHP 4 >= 4.1.0, PHP 5, PHP 7)<br/>
* Register a PHP function to generate documentation
* @link http://php.net/manual/en/function.xmlrpc-server-register-introspection-callback.php
* @param resource $server
* @param string $function
* @return bool
*/
function xmlrpc_server_register_introspection_callback($server, string $function): bool {}
// End of xmlrpc v.7.0.4-7ubuntu2
?>