Files
php-doc-ru/reference/dom/domnodelist.xml
2024-12-10 18:17:53 +03:00

146 lines
4.3 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 83ef90503f40d9f83178394ad743587b9a13bb59 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<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>Класс DOMNodeList</title>
<titleabbrev>DOMNodeList</titleabbrev>
<partintro>
<section xml:id="domnodelist.intro">
&reftitle.intro;
<simpara>
Представляет список узлов.
</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>
Количество узлов в списке. Диапазон действительных индексов дочерних узлов
включает значения от 0 до <literal>length - 1</literal> включительно.
</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> теперь реализует интерфейс
<interfacename>IteratorAggregate</interfacename>.
Раньше вместо этого класс реализовывал интерфейс <interfacename>Traversable</interfacename>.
</entry>
</row>
<row>
<entry>7.2.0</entry>
<entry>
Реализовали интерфейс <classname>Countable</classname>
и возврат значения свойства <link linkend="domnodelist.props.length">length</link>.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section><!-- }}} -->
<section role="notes">
&reftitle.notes;
<note>
<simpara>
Доступ к узлам в списке получают тем же синтаксисом, который открывает доступ к элементам массива.
</simpara>
</note>
</section>
<!-- {{{ See also -->
<section role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><link xlink:href="&url.spec.dom3.nodelist;">Спецификация консорциума W3C к объекту 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
-->