1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-24 15:52:13 +01:00
Files
archived-doc-ru/reference/spl/iteratoriterator.xml
2024-06-14 17:02:33 +01:00

85 lines
3.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 14767af0f05dffa6fdb9b49e1a1f4e9ca7022a60 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<reference xml:id="class.iteratoriterator" 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>Класс IteratorIterator </title>
<titleabbrev>IteratorIterator</titleabbrev>
<partintro>
<!-- {{{ IteratorIterator intro -->
<section xml:id="iteratoriterator.intro">
&reftitle.intro;
<para>
Этот итератор-обёртка разрешает преобразовывать
<link linkend="class.traversable">Traversable</link>-объекты в итераторы.
Важно понимать, что классы часто не реализуют интерфейсы итераторов,
потому что не дают всего набора методов итератора. Тогда требуется предусмотреть техники,
которые предотвратят неправильную работу класса, без которых появятся исключения
или фатальные ошибки.
</para>
</section>
<!-- }}} -->
<section xml:id="iteratoriterator.synopsis">
&reftitle.classsynopsis;
<!-- {{{ Synopsis -->
<classsynopsis class="class">
<ooclass>
<classname>IteratorIterator</classname>
</ooclass>
<oointerface>
<modifier>implements</modifier>
<interfacename>OuterIterator</interfacename>
</oointerface>
<classsynopsisinfo role="comment">&Methods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:constructorsynopsis[@role='IteratorIterator'])">
<xi:fallback/>
</xi:include>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.iteratoriterator')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[@role='IteratorIterator'])">
<xi:fallback/>
</xi:include>
</classsynopsis>
<!-- }}} -->
</section>
<section role="notes"><!-- {{{ -->
&reftitle.notes;
<note>
<para>
Класс разрешает доступ к методам внутреннего итератора через магический метод __call.
</para>
</note>
</section><!-- }}} -->
</partintro>
&reference.spl.entities.iteratoriterator;
</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
-->