reference/soap/soapparam/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="soapparam.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
5
4
<refnamediv>
6
5
<refname>SoapParam::__construct</refname>
...
...
@@ -9,18 +8,73 @@
9
8

10
9
<refsect1 role="description">
11
10
&reftitle.description;
12
-
<methodsynopsis>
13
-
<methodname>SoapParam::__construct</methodname>
11
+
<constructorsynopsis role="SoapParam">
12
+
<modifier>public</modifier> <methodname>SoapParam::__construct</methodname>
14
13
<methodparam><type>mixed</type><parameter>data</parameter></methodparam>
15
14
<methodparam><type>string</type><parameter>name</parameter></methodparam>
16
-
</methodsynopsis>
15
+
</constructorsynopsis>
17
16
<para>
18
-
&info.function.alias; <methodname>SoapParam::SoapParam</methodname>
17
+
Constructs a new <classname>SoapParam</classname> object.
19
18
</para>
20
19
</refsect1>
21
20

22
-
</refentry>
21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
<para>
24
+
<variablelist>
25
+
<varlistentry>
26
+
<term><parameter>data</parameter></term>
27
+
<listitem>
28
+
<para>
29
+
The data to pass or return. This parameter can be passed directly as PHP
30
+
value, but in this case it will be named as <literal>paramN</literal> and
31
+
the SOAP service may not understand it.
32
+
</para>
33
+
</listitem>
34
+
</varlistentry>
35
+
<varlistentry>
36
+
<term><parameter>name</parameter></term>
37
+
<listitem>
38
+
<para>
39
+
The parameter name.
40
+
</para>
41
+
</listitem>
42
+
</varlistentry>
43
+
</variablelist>
44
+
</para>
45
+
</refsect1>
46
+

47
+
<refsect1 role="examples">
48
+
&reftitle.examples;
49
+
<para>
50
+
<example>
51
+
<title><function>SoapParam::__construct</function> example</title>
52
+
<programlisting role="php">
53
+
<![CDATA[
54
+
<?php
55
+
$client = new SoapClient(null,array('location' => "http://localhost/soap.php",
56
+
'uri' => "http://test-uri/"));
57
+
$client->SomeFunction(new SoapParam($a, "a"),
58
+
new SoapParam($b, "b"),
59
+
new SoapParam($c, "c"));
60
+
?>
61
+
]]>
62
+
</programlisting>
63
+
</example>
64
+
</para>
65
+
</refsect1>
23
66

67
+
<refsect1 role="seealso">
68
+
&reftitle.seealso;
69
+
<para>
70
+
<simplelist>
71
+
<member><methodname>SoapClient::__soapCall</methodname></member>
72
+
<member><methodname>SoapVar::__construct</methodname></member>
73
+
</simplelist>
74
+
</para>
75
+
</refsect1>
76
+

77
+
</refentry>
24
78
<!-- Keep this comment at the end of the file
25
79
Local variables:
26
80
mode: sgml
27
81