1
0
mirror of https://github.com/php/doc-en.git synced 2026-03-23 23:32:18 +01:00
Files
archived-doc-en/reference/dom/domnodelist.xml
2024-12-07 18:12:19 +01:00

151 lines
3.9 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!--
Remove me once you perform substitutions
domnodelist
DOMNodeList
dom
-->
<reference xml:id="class.domnodelist" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
<title>The DOMNodeList class</title>
<titleabbrev>DOMNodeList</titleabbrev>
<partintro>
<section xml:id="domnodelist.intro">
&reftitle.intro;
<simpara>
Represents a live list of nodes.
</simpara>
</section>
<section xml:id="domnodelist.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>DOMNodeList</classname>
</ooclass>
<oointerface>
<modifier>implements</modifier>
<interfacename>IteratorAggregate</interfacename>
</oointerface>
<oointerface>
<interfacename>Countable</interfacename>
</oointerface>
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
<fieldsynopsis>
<modifier>public</modifier>
<modifier>readonly</modifier>
<type>int</type>
<varname linkend="domnodelist.props.length">length</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.domnodelist')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='DOMNodeList'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<!-- {{{ DOMNodeList properties -->
<section xml:id="domnodelist.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="domnodelist.props.length">
<term><varname>length</varname></term>
<listitem>
<para>
The number of nodes in the list. The range of valid child node
indices is 0 to <literal>length - 1</literal> inclusive.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->
<section role="changelog" xml:id="domnodelist.changelog"><!-- {{{ -->
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<classname>DOMNodeList</classname> implements
<interfacename>IteratorAggregate</interfacename> now.
Previously, <interfacename>Traversable</interfacename> was implemented instead.
</entry>
</row>
<row>
<entry>7.2.0</entry>
<entry>
The <classname>Countable</classname> interface is implemented and
returns the value of the <link linkend="domnodelist.props.length">length</link> property.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section><!-- }}} -->
<section role="notes">
&reftitle.notes;
<note>
<simpara>
Nodes in the list can be accessed by array syntax.
</simpara>
</note>
</section>
<!-- {{{ See also -->
<section role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link xlink:href="&url.spec.dom3.nodelist;">W3C specification of NodeList</link></member>
</simplelist>
</para>
</section>
<!-- }}} -->
</partintro>
&reference.dom.entities.domnodelist;
</reference>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->