Files
doc-fr/reference/spl/norewinditerator/rewind.xml
Jean-Baptiste Nahan 38f7a8b9c1 Sync with EN
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@344455 c90b9560-bf6c-de11-be94-00142212c4b1
2018-03-06 20:32:52 +00:00

91 lines
2.1 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: dd07341fae2c414adc1f700be0890ff32e8daab4 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="norewinditerator.rewind" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>NoRewindIterator::rewind</refname>
<refpurpose>Réinitialise l'itérateur interne</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>public</modifier> <type>void</type><methodname>NoRewindIterator::rewind</methodname>
<void/>
</methodsynopsis>
<para>
Réinitialise l'itérateur interne.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
&no.function.parameters;
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&return.void;
</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<para>
<example>
<title>Exemple avec <function>NoRewindIterator::rewind</function></title>
<para>
Cet exemple démontre que l'appel à cette méthode sur un objet NoRewindIterator n'a aucun effet.
</para>
<programlisting role="php">
<![CDATA[
<?php
$fruits = array("lemon", "orange", "apple", "pear");
$noRewindIterator = new NoRewindIterator(new ArrayIterator($fruits));
echo $noRewindIterator->current() . "\n";
$noRewindIterator->next();
// Maintenant, on réinitialise l'itérateur (rien ne doit survenir)
$noRewindIterator->rewind();
echo $noRewindIterator->current() . "\n";
?>
]]>
</programlisting>
&example.outputs;
<screen>
<![CDATA[
lemon
orange
]]>
</screen>
</example>
</para>
</refsect1>
</refentry>
<!-- 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
-->