mirror of
https://github.com/php/doc-pl.git
synced 2026-04-23 14:58:02 +02:00
3d43c60eaa
Co-authored-by: Maciej Sobaczewski <msobaczewski@gmail.com>
110 lines
3.1 KiB
XML
110 lines
3.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- EN-Revision: 4d17b7b4947e7819ff5036715dd706be87ae4def Maintainer: grzesiek Status: ready -->
|
|
<!-- $Revision$ -->
|
|
<reference xml:id="class.traversable" 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>Interfejs <interfacename>Traversable</interfacename></title>
|
|
<titleabbrev>Traversable</titleabbrev>
|
|
|
|
<partintro>
|
|
|
|
<!-- {{{ Traversable intro -->
|
|
<section xml:id="traversable.intro">
|
|
&reftitle.intro;
|
|
<para>
|
|
Interfejs do wykrywania, czy przez elementy klasy można przechodzić przy użyciu &foreach;.
|
|
</para>
|
|
<para>
|
|
Abstrakcyjny interfejs podstawowy, który nie może zostać zaimplementowany samodzielnie. Zamiast tego musi być
|
|
zaimplementowany poprzez interfejs <interfacename>IteratorAggregate</interfacename> lub
|
|
<interfacename>Iterator</interfacename>.
|
|
</para>
|
|
</section>
|
|
<!-- }}} -->
|
|
|
|
<section xml:id="traversable.synopsis">
|
|
&reftitle.interfacesynopsis;
|
|
|
|
<!-- {{{ Synopsis -->
|
|
<classsynopsis class="interface">
|
|
<oointerface>
|
|
<interfacename>Traversable</interfacename>
|
|
</oointerface>
|
|
</classsynopsis>
|
|
<!-- }}} -->
|
|
|
|
<para>
|
|
Interfejs ten nie posiada żadnych metod, a jego jedynym celem jest bycie
|
|
interfejsem bazowym dla wszystkich klas traversable.
|
|
</para>
|
|
|
|
</section>
|
|
|
|
<section role="changelog">
|
|
&reftitle.changelog;
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>7.4.0</entry>
|
|
<entry>
|
|
Interfejs <interfacename>Traversable</interfacename> może być teraz
|
|
implementowany przez klasy abstrakcyjne. Klasy rozszerzające muszą implementować
|
|
<interfacename>Iterator</interfacename> lub
|
|
<interfacename>IteratorAggregate</interfacename>.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</section>
|
|
|
|
<section role="notes">
|
|
&reftitle.notes;
|
|
<note>
|
|
<para>
|
|
Wewnętrzne (wbudowane) klasy implementujące ten interfejs mogą być używane
|
|
w konstrukcji &foreach; i nie muszą implementować interfejsu
|
|
<interfacename>IteratorAggregate</interfacename> lub
|
|
<interfacename>Iterator</interfacename>.
|
|
</para>
|
|
</note>
|
|
<note>
|
|
<para>
|
|
Przed PHP 7.4.0, ten wewnętrzny interfejs silnika nie mógł być
|
|
zaimplementowany w skryptach PHP. Zamiast tego należy użyć interfejsu
|
|
<interfacename>IteratorAggregate</interfacename> lub <interfacename>Iterator</interfacename>.
|
|
</para>
|
|
</note>
|
|
</section>
|
|
|
|
</partintro>
|
|
|
|
</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
|
|
-->
|