reference/simplexml/simplexmlelement/children.xml
770c6facae667218f69c8ea2715ea20f6fab32f3
...
...
@@ -8,10 +8,10 @@
8
8
9
9
<refsect1 role="description">
10
10
&reftitle.description;
11
-
<methodsynopsis>
12
-
<modifier>public</modifier> <type>SimpleXMLElement</type><methodname>SimpleXMLElement::children</methodname>
13
-
<methodparam choice="opt"><type>string</type><parameter>ns</parameter></methodparam>
14
-
<methodparam choice="opt"><type>bool</type><parameter>is_prefix</parameter><initializer>false</initializer></methodparam>
11
+
<methodsynopsis role="SimpleXMLElement">
12
+
<modifier>public</modifier> <type class="union"><type>SimpleXMLElement</type><type>null</type></type><methodname>SimpleXMLElement::children</methodname>
13
+
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>namespaceOrPrefix</parameter><initializer>&null;</initializer></methodparam>
14
+
<methodparam choice="opt"><type>bool</type><parameter>isPrefix</parameter><initializer>&false;</initializer></methodparam>
15
15
</methodsynopsis>
16
16
<para>
17
17
This method finds the children of an element. The result follows normal
...
...
@@ -25,7 +25,7 @@
25
25
<para>
26
26
<variablelist>
27
27
<varlistentry>
28
-
<term><parameter>ns</parameter></term>
28
+
<term><parameter>namespaceOrPrefix</parameter></term>
29
29
<listitem>
30
30
<para>
31
31
An <acronym>XML</acronym> namespace.
...
...
@@ -33,12 +33,12 @@
33
33
</listitem>
34
34
</varlistentry>
35
35
<varlistentry>
36
-
<term><parameter>is_prefix</parameter></term>
36
+
<term><parameter>isPrefix</parameter></term>
37
37
<listitem>
38
38
<para>
39
-
If <parameter>is_prefix</parameter> is &true;,
40
-
<parameter>ns</parameter> will be regarded as a prefix. If &false;,
41
-
<parameter>ns</parameter> will be regarded as a namespace
39
+
If <parameter>isPrefix</parameter> is &true;,
40
+
<parameter>namespaceOrPrefix</parameter> will be regarded as a prefix. If &false;,
41
+
<parameter>namespaceOrPrefix</parameter> will be regarded as a namespace
42
42
<acronym>URL</acronym>.
43
43
</para>
44
44
</listitem>
...
...
@@ -51,31 +51,8 @@
51
51
&reftitle.returnvalues;
52
52
<para>
53
53
Returns a <classname>SimpleXMLElement</classname> element, whether the node
54
-
has children or not.
55
-
</para>
56
-
</refsect1>
57
-

58
-
<refsect1 role="changelog">
59
-
&reftitle.changelog;
60
-
<para>
61
-
<informaltable>
62
-
<tgroup cols="2">
63
-
<thead>
64
-
<row>
65
-
<entry>&Version;</entry>
66
-
<entry>&Description;</entry>
67
-
</row>
68
-
</thead>
69
-
<tbody>
70
-
<row>
71
-
<entry>5.2.0</entry>
72
-
<entry>
73
-
The optional parameter <parameter>is_prefix</parameter> was added.
74
-
</entry>
75
-
</row>
76
-
</tbody>
77
-
</tgroup>
78
-
</informaltable>
54
+
has children or not, unless the node represents an attribute, in which case
55
+
&null; is returned.
79
56
</para>
80
57
</refsect1>
81
58

...
...
@@ -165,18 +142,6 @@ int(1)
165
142
</para>
166
143
</refsect1>
167
144
168
-
<refsect1 role="notes">
169
-
&reftitle.notes;
170
-

171
-
<simpara>
172
-
<methodname>SimpleXMLElement::children</methodname> returns a node
173
-
object no matter if the current node has children or not. Use
174
-
<function>count</function> on the return value to see if there are any
175
-
children. As of PHP 5.3.0, <methodname>SimpleXMLElement::count</methodname>
176
-
may be used instead.
177
-
</simpara>
178
-
</refsect1>
179
-
180
145
<refsect1 role="seealso">
181
146
&reftitle.seealso;
182
147
<para>
...
...
@@ -188,7 +153,6 @@ int(1)
188
153
</refsect1>
189
154

190
155
</refentry>
191
-

192
156
<!-- Keep this comment at the end of the file
193
157
Local variables:
194
158
mode: sgml
195
159