reference/soap/soapvar/construct.xml
fe4e8b87d18f17394e7177917c498774b062448c
...
...
@@ -1,6 +1,5 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-

4
3
<refentry xml:id="soapvar.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>SoapVar::__construct</refname>
...
...
@@ -9,22 +8,138 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<methodname>SoapVar::__construct</methodname>
11
+
<constructorsynopsis role="SoapVar">
12
+
<modifier>public</modifier> <methodname>SoapVar::__construct</methodname>
14
13
<methodparam><type>mixed</type><parameter>data</parameter></methodparam>
15
-
<methodparam><type>string</type><parameter>encoding</parameter></methodparam>
16
-
<methodparam choice="opt"><type>string</type><parameter>type_name</parameter></methodparam>
17
-
<methodparam choice="opt"><type>string</type><parameter>type_namespace</parameter></methodparam>
18
-
<methodparam choice="opt"><type>string</type><parameter>node_name</parameter></methodparam>
19
-
<methodparam choice="opt"><type>string</type><parameter>node_namespace</parameter></methodparam>
20
-
</methodsynopsis>
14
+
<methodparam><type class="union"><type>int</type><type>null</type></type><parameter>encoding</parameter></methodparam>
15
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>typeName</parameter><initializer>&null;</initializer></methodparam>
16
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>typeNamespace</parameter><initializer>&null;</initializer></methodparam>
17
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>nodeName</parameter><initializer>&null;</initializer></methodparam>
18
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>nodeNamespace</parameter><initializer>&null;</initializer></methodparam>
19
+
</constructorsynopsis>
21
20
<para>
22
-
&info.function.alias; <methodname>SoapVar::SoapVar</methodname>
21
+
Constructs a new <classname>SoapVar</classname> object.
23
22
</para>
24
23
</refsect1>
25
24

26
-
</refentry>
25
+
<refsect1 role="parameters">
26
+
&reftitle.parameters;
27
+
<para>
28
+
<variablelist>
29
+
<varlistentry>
30
+
<term><parameter>data</parameter></term>
31
+
<listitem>
32
+
<para>
33
+
The data to pass or return.
34
+
</para>
35
+
</listitem>
36
+
</varlistentry>
37
+
<varlistentry>
38
+
<term><parameter>encoding</parameter></term>
39
+
<listitem>
40
+
<para>
41
+
The encoding ID, one of the <literal>XSD_...</literal> constants.
42
+
</para>
43
+
</listitem>
44
+
</varlistentry>
45
+
<varlistentry>
46
+
<term><parameter>type_name</parameter></term>
47
+
<listitem>
48
+
<para>
49
+
The type name.
50
+
</para>
51
+
</listitem>
52
+
</varlistentry>
53
+
<varlistentry>
54
+
<term><parameter>type_namespace</parameter></term>
55
+
<listitem>
56
+
<para>
57
+
The type namespace.
58
+
</para>
59
+
</listitem>
60
+
</varlistentry>
61
+
<varlistentry>
62
+
<term><parameter>node_name</parameter></term>
63
+
<listitem>
64
+
<para>
65
+
The XML node name.
66
+
</para>
67
+
</listitem>
68
+
</varlistentry>
69
+
<varlistentry>
70
+
<term><parameter>node_namespace</parameter></term>
71
+
<listitem>
72
+
<para>
73
+
The XML node namespace.
74
+
</para>
75
+
</listitem>
76
+
</varlistentry>
77
+
</variablelist>
78
+
</para>
79
+
</refsect1>
80
+

81
+
<refsect1 role="changelog">
82
+
&reftitle.changelog;
83
+
<informaltable>
84
+
<tgroup cols="2">
85
+
<thead>
86
+
<row>
87
+
<entry>&Version;</entry>
88
+
<entry>&Description;</entry>
89
+
</row>
90
+
</thead>
91
+
<tbody>
92
+
<row>
93
+
<entry>8.0.3</entry>
94
+
<entry>
95
+
<parameter>typeName</parameter>, <parameter>typeNamespace</parameter>, <parameter>nodeName</parameter>,and
96
+
<parameter>nodeNamespace</parameter> are nullable now.
97
+
</entry>
98
+
</row>
99
+
</tbody>
100
+
</tgroup>
101
+
</informaltable>
102
+
</refsect1>
103
+

104
+
<refsect1 role="examples">
105
+
&reftitle.examples;
106
+
<para>
107
+
<example>
108
+
<title><function>SoapVar::__construct</function> example</title>
109
+
<programlisting role="php">
110
+
<![CDATA[
111
+
<?php
112
+
class SOAPStruct {
113
+
function SOAPStruct($s, $i, $f)
114
+
{
115
+
$this->varString = $s;
116
+
$this->varInt = $i;
117
+
$this->varFloat = $f;
118
+
}
119
+
}
120
+
$client = new SoapClient(null, array('location' => "http://localhost/soap.php",
121
+
'uri' => "http://test-uri/"));
122
+
$struct = new SOAPStruct('arg', 34, 325.325);
123
+
$soapstruct = new SoapVar($struct, SOAP_ENC_OBJECT, "SOAPStruct", "http://soapinterop.org/xsd");
124
+
$client->echoStruct(new SoapParam($soapstruct, "inputStruct"));
125
+
?>
126
+
]]>
127
+
</programlisting>
128
+
</example>
129
+
</para>
130
+
</refsect1>
131
+

132
+
<refsect1 role="seealso">
133
+
&reftitle.seealso;
134
+
<para>
135
+
<simplelist>
136
+
<member><methodname>SoapClient::__soapCall</methodname></member>
137
+
<member><methodname>SoapParam::__construct</methodname></member>
138
+
</simplelist>
139
+
</para>
140
+
</refsect1>
27
141

142
+
</refentry>
28
143
<!-- Keep this comment at the end of the file
29
144
Local variables:
30
145
mode: sgml
31
146