reference/dom/domdocumentfragment.xml
14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60
...
...
@@ -1,6 +1,6 @@
1
1
<?xml version="1.0" encoding="utf-8"?>
2
2
<!-- $Revision$ -->
3
-
<phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.domdocumentfragment" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
3
+
<phpdoc:classref xml:id="class.domdocumentfragment" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
4
4
<title>The DOMDocumentFragment class</title>
5
5
<titleabbrev>DOMDocumentFragment</titleabbrev>
6
6
...
...
@@ -21,66 +21,114 @@
21
21
&reftitle.classsynopsis;
22
22
23
23
<!-- {{{ Synopsis -->
24
-
<classsynopsis>
25
-
<ooclass><classname>DOMDocumentFragment</classname></ooclass>
26
-
27
-
<!-- {{{ Class synopsis -->
28
-
<classsynopsisinfo>
29
-
<ooclass>
30
-
<classname>DOMDocumentFragment</classname>
31
-
</ooclass>
32
-
33
-
<!-- If the class extends another one, use this -->
34
-
<ooclass>
35
-
<modifier>extends</modifier>
36
-
<classname>DOMNode</classname>
37
-
</ooclass>
38
-
39
-
</classsynopsisinfo>
40
-
<!-- }}} -->
24
+
<classsynopsis class="class">
25
+
<ooclass>
26
+
<classname>DOMDocumentFragment</classname>
27
+
</ooclass>
28
+

29
+
<ooclass>
30
+
<modifier>extends</modifier>
31
+
<classname>DOMNode</classname>
32
+
</ooclass>
33
+

34
+
<oointerface>
35
+
<modifier>implements</modifier>
36
+
<interfacename>DOMParentNode</interfacename>
37
+
</oointerface>
41
38

42
39
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
43
-
<!-- If the property is documented below (xml:id=domdocumentfragment.props) use this -->
44
-
<!--
45
40
<fieldsynopsis>
46
41
<modifier>public</modifier>
47
-
<type>string</type>
48
-
<varname linkend="domdocumentfragment.props.name">name</varname>
42
+
<modifier>readonly</modifier>
43
+
<type class="union"><type>DOMElement</type><type>null</type></type>
44
+
<varname linkend="domdocumentfragment.props.firstelementchild">firstElementChild</varname>
45
+
</fieldsynopsis>
46
+
<fieldsynopsis>
47
+
<modifier>public</modifier>
48
+
<modifier>readonly</modifier>
49
+
<type class="union"><type>DOMElement</type><type>null</type></type>
50
+
<varname linkend="domdocumentfragment.props.lastelementchild">lastElementChild</varname>
51
+
</fieldsynopsis>
52
+
<fieldsynopsis>
53
+
<modifier>public</modifier>
54
+
<modifier>readonly</modifier>
55
+
<type>int</type>
56
+
<varname linkend="domdocumentfragment.props.childelementcount">childElementCount</varname>
49
57
</fieldsynopsis>
50
-
-->
51
58

52
59
<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
53
60
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domnode')/db:partintro/db:section/db:classsynopsis/db:fieldsynopsis[preceding-sibling::db:classsynopsisinfo[1][@role='comment' and text()='&Properties;']]))">
54
-
<xi:fallback />
61
+
<xi:fallback/>
55
62
</xi:include>
56
63

57
64
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
58
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domdocumentfragment')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
65
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domdocumentfragment')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='DOMDocumentFragment'])">
66
+
<xi:fallback/>
67
+
</xi:include>
68
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domdocumentfragment')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='DOMDocumentFragment'])">
69
+
<xi:fallback/>
70
+
</xi:include>
59
71

60
-
<!-- Again, if the class extends a class use this -->
61
72
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
62
-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domnode')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" />
63
-

73
+
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domnode')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='DOMNode'])">
74
+
<xi:fallback/>
75
+
</xi:include>
64
76
</classsynopsis>
65
-
<!-- }}} -->
66
-
67
77
</section>
68
78

69
-
<!-- {{{ DOMDocumentFragment properties -->
70
-
<!--
71
79
<section xml:id="domdocumentfragment.props">
72
80
&reftitle.properties;
73
81
<variablelist>
74
-
<varlistentry xml:id="domdocumentfragment.props.name">
75
-
<term><varname>name</varname></term>
82
+
<varlistentry xml:id="domdocumentfragment.props.childelementcount">
83
+
<term><varname>childElementCount</varname></term>
84
+
<listitem>
85
+
<para>The number of child elements.</para>
86
+
</listitem>
87
+
</varlistentry>
88
+
<varlistentry xml:id="domdocumentfragment.props.firstelementchild">
89
+
<term><varname>firstElementChild</varname></term>
76
90
<listitem>
77
-
<para>Prop description</para>
91
+
<para>First child element or &null;.</para>
92
+
</listitem>
93
+
</varlistentry>
94
+
<varlistentry xml:id="domdocumentfragment.props.lastelementchild">
95
+
<term><varname>lastElementChild</varname></term>
96
+
<listitem>
97
+
<para>Last child element or &null;.</para>
78
98
</listitem>
79
99
</varlistentry>
80
100
</variablelist>
81
101
</section>
82
-
-->
83
-
<!-- }}} -->
102
+

103
+
<section role="changelog">
104
+
&reftitle.changelog;
105
+
<informaltable>
106
+
<tgroup cols="2">
107
+
<thead>
108
+
<row>
109
+
<entry>&Version;</entry>
110
+
<entry>&Description;</entry>
111
+
</row>
112
+
</thead>
113
+
<tbody>
114
+
<row>
115
+
<entry>8.0.0</entry>
116
+
<entry>
117
+
The <varname>firstElementChild</varname>, <varname>lastElementChild</varname>,
118
+
and <varname>childElementCount</varname> properties have been added.
119
+
</entry>
120
+
</row>
121
+
<row>
122
+
<entry>8.0.0</entry>
123
+
<entry>
124
+
<classname>DOMDocumentFragment</classname> implements
125
+
<interfacename>DOMParentNode</interfacename> now.
126
+
</entry>
127
+
</row>
128
+
</tbody>
129
+
</tgroup>
130
+
</informaltable>
131
+
</section>
84
132
85
133
<!-- {{{ See also -->
86
134
<!--
...
...
@@ -100,7 +148,6 @@
100
148
&reference.dom.entities.domdocumentfragment;
101
149
102
150
</phpdoc:classref>
103
-
104
151
<!-- Keep this comment at the end of the file
105
152
Local variables:
106
153
mode: sgml
...
...
@@ -121,4 +168,3 @@ vim600: syn=xml fen fdm=syntax fdl=2 si
121
168
vim: et tw=78 syn=sgml
122
169
vi: ts=1 sw=1
123
170
-->
124
-

125
171