-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathwddx.php
83 lines (75 loc) · 2.65 KB
/
wddx.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
<?php
// Start of wddx v.7.0.4-7ubuntu2
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Serialize a single value into a WDDX packet
* @link http://php.net/manual/en/function.wddx-serialize-value.php
* @param mixed $var <p>
* The value to be serialized
* </p>
* @param string $comment [optional] <p>
* An optional comment string that appears in the packet header.
* </p>
* @return string the WDDX packet, or <b>FALSE</b> on error.
*/
function wddx_serialize_value($var, string $comment = null): string {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Serialize variables into a WDDX packet
* @link http://php.net/manual/en/function.wddx-serialize-vars.php
* @param mixed $var_name <p>
* Can be either a string naming a variable or an array containing
* strings naming the variables or another array, etc.
* </p>
* @param mixed $_ [optional]
* @return string the WDDX packet, or <b>FALSE</b> on error.
*/
function wddx_serialize_vars($var_name, $_ = null): string {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Starts a new WDDX packet with structure inside it
* @link http://php.net/manual/en/function.wddx-packet-start.php
* @param string $comment [optional] <p>
* An optional comment string.
* </p>
* @return resource a packet ID for use in later functions, or <b>FALSE</b> on error.
*/
function wddx_packet_start(string $comment = null) {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Ends a WDDX packet with the specified ID
* @link http://php.net/manual/en/function.wddx-packet-end.php
* @param resource $packet_id <p>
* A WDDX packet, returned by <b>wddx_packet_start</b>.
* </p>
* @return string the string containing the WDDX packet.
*/
function wddx_packet_end($packet_id): string {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Add variables to a WDDX packet with the specified ID
* @link http://php.net/manual/en/function.wddx-add-vars.php
* @param resource $packet_id <p>
* A WDDX packet, returned by <b>wddx_packet_start</b>.
* </p>
* @param mixed $var_name <p>
* Can be either a string naming a variable or an array containing
* strings naming the variables or another array, etc.
* </p>
* @param mixed $_ [optional]
* @return bool <b>TRUE</b> on success or <b>FALSE</b> on failure.
*/
function wddx_add_vars($packet_id, $var_name, $_ = null): bool {}
/**
* (PHP 4, PHP 5, PHP 7)<br/>
* Unserializes a WDDX packet
* @link http://php.net/manual/en/function.wddx-deserialize.php
* @param string $packet <p>
* A WDDX packet, as a string or stream.
* </p>
* @return mixed the deserialized value which can be a string, a number or an
* array. Note that structures are deserialized into associative arrays.
*/
function wddx_deserialize(string $packet) {}
// End of wddx v.7.0.4-7ubuntu2
?>