cvs: phpdoc-fr /reference/spl datastructures.xml simplexmliterator.xml /reference/spl/functions iterator-count.xml iterator-to-array.xml

From: Date: Mon, 13 Apr 2009 12:10:07 +0000
Subject: cvs: phpdoc-fr /reference/spl datastructures.xml simplexmliterator.xml /reference/spl/functions iterator-count.xml iterator-to-array.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-7031@lists.php.net to get a copy of this message
dams Mon Apr 13 12:10:07 2009 UTC Modified files: /phpdoc-fr/reference/spl datastructures.xml simplexmliterator.xml /phpdoc-fr/reference/spl/functions iterator-count.xml iterator-to-array.xml Log: synch with en http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/datastructures.xml?r1=1.2&r2=1.3&diff_format=u Index: phpdoc-fr/reference/spl/datastructures.xml diff -u phpdoc-fr/reference/spl/datastructures.xml:1.2 phpdoc-fr/reference/spl/datastructures.xml:1.3 --- phpdoc-fr/reference/spl/datastructures.xml:1.2 Mon Apr 13 12:04:18 2009 +++ phpdoc-fr/reference/spl/datastructures.xml Mon Apr 13 12:10:07 2009 @@ -1,6 +1,6 @@ <?xml version='1.0' encoding='utf-8'?> -<!-- $Revision: 1.2 $ --> -<!-- EN-Revision: 1.5 Maintainer: dams Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- EN-Revision: 1.6 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <part xml:id="spl.datastructures" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/simplexmliterator.xml?r1=1.3&r2=1.4&diff_format=u Index: phpdoc-fr/reference/spl/simplexmliterator.xml diff -u phpdoc-fr/reference/spl/simplexmliterator.xml:1.3 phpdoc-fr/reference/spl/simplexmliterator.xml:1.4 --- phpdoc-fr/reference/spl/simplexmliterator.xml:1.3 Mon Apr 13 12:04:18 2009 +++ phpdoc-fr/reference/spl/simplexmliterator.xml Mon Apr 13 12:10:07 2009 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.4 Maintainer: dams Status: ready --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.5 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xmlns:phpdoc="http://php.net/ns/phpdoc" xml:id="class.simplexmliterator" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/functions/iterator-count.xml?r1=1.9&r2=1.10&diff_format=u Index: phpdoc-fr/reference/spl/functions/iterator-count.xml diff -u phpdoc-fr/reference/spl/functions/iterator-count.xml:1.9 phpdoc-fr/reference/spl/functions/iterator-count.xml:1.10 --- phpdoc-fr/reference/spl/functions/iterator-count.xml:1.9 Tue Jan 6 21:35:41 2009 +++ phpdoc-fr/reference/spl/functions/iterator-count.xml Mon Apr 13 12:10:07 2009 @@ -1,13 +1,13 @@ -<?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.9 $ --> -<!-- EN-Revision: 1.8 Maintainer: yannick Status: ready --> +<?xml version='1.0' encoding='utf-8'?> +<!-- $Revision: 1.10 $ --> +<!-- EN-Revision: 1.9 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.iterator-count" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>iterator_count</refname> <refpurpose> - Compte de nombre d'éléments dans un itérateur + Compte de nombre d'éléments dans un itérateur </refpurpose> </refnamediv> <refsect1 role="description"> @@ -20,7 +20,7 @@ &warn.undocumented.func; <para> - Compte les éléments dans un itérateur. + Compte les éléments dans un itérateur. </para> </refsect1> @@ -32,7 +32,7 @@ <term><parameter>iterator</parameter></term> <listitem> <para> - L'itérateur à compter. + L'itérateur dont il faut compter les éléments. </para> </listitem> </varlistentry> @@ -43,7 +43,30 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Le nombre d'éléments dans l'itérateur <parameter>iterator</parameter>. + Le nombre d'éléments dans l'itérateur <parameter>iterator</parameter>. + </para> + </refsect1> + + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>iterator_count</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$iterator = new ArrayIterator(array('recipe'=>'crêpes', 'oeufs', 'lait', 'farine')); +var_dump(iterator_count($iterator)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +int(4) +]]> + </screen> + </example> </para> </refsect1> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/spl/functions/iterator-to-array.xml?r1=1.12&r2=1.13&diff_format=u Index: phpdoc-fr/reference/spl/functions/iterator-to-array.xml diff -u phpdoc-fr/reference/spl/functions/iterator-to-array.xml:1.12 phpdoc-fr/reference/spl/functions/iterator-to-array.xml:1.13 --- phpdoc-fr/reference/spl/functions/iterator-to-array.xml:1.12 Wed Jan 21 13:13:30 2009 +++ phpdoc-fr/reference/spl/functions/iterator-to-array.xml Mon Apr 13 12:10:07 2009 @@ -1,13 +1,13 @@ -<?xml version='1.0' encoding='iso-8859-1'?> -<!-- $Revision: 1.12 $ --> -<!-- EN-Revision: 1.11 Maintainer: dams Status: ready --> +<?xml version='1.0' encoding='utf-8'?> +<!-- $Revision: 1.13 $ --> +<!-- EN-Revision: 1.12 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="function.iterator-to-array" xmlns="http://docbook.org/ns/docbook"> <refnamediv> <refname>iterator_to_array</refname> <refpurpose> - Copie un itérateur dans un tableau + Copie un itérateur dans un tableau </refpurpose> </refnamediv> @@ -18,11 +18,8 @@ <methodparam><type>Traversable</type><parameter>iterator</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>use_keys</parameter><initializer>true</initializer></methodparam> </methodsynopsis> - - &warn.undocumented.func; - <para> - Compte les éléments dans un itérateur. + Copie les éléments d'un itérateur dans un &array;. </para> </refsect1> @@ -34,7 +31,7 @@ <term><parameter>iterator</parameter></term> <listitem> <para> - L'itérateur à compter. + L'itérateur à copier. </para> </listitem> </varlistentry> @@ -42,7 +39,7 @@ <term><parameter>use_keys</parameter></term> <listitem> <para> - <!-- FIXME --> + S'il faut utiliser les éléments de l'itérateur comme clé. </para> </listitem> </varlistentry> @@ -53,11 +50,55 @@ <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> - Le nombre d'éléments dans l'itérateur + Un &array; contenant les éléments de l'itérateur <parameter>iterator</parameter>. </para> </refsect1> + <refsect1 role="examples"> + &reftitle.examples; + <para> + <example> + <title>Exemple avec <function>iterator_to_array</function></title> + <programlisting role="php"> +<![CDATA[ +<?php +$iterator = new ArrayIterator(array('recipe'=>'crêpes', 'oeufs', 'lait', 'farine')); +var_dump(iterator_to_array($iterator, true)); +var_dump(iterator_to_array($iterator, false)); +?> +]]> + </programlisting> + &example.outputs; + <screen> +<![CDATA[ +array(4) { + ["recipe"]=> + string(7) "crêpes" + [0]=> + string(5) "oeufs" + [1]=> + string(4) "lait" + [2]=> + string(6) "farine" +} +array(4) { + [0]=> + string(7) "crêpes" + [1]=> + string(5) "oeufs" + [2]=> + string(4) "lait" + [3]=> + string(6) "farine" +} + +]]> + </screen> + </example> + </para> + </refsect1> + </refentry> <!-- Keep this comment at the end of the file Local variables:

« previous php.doc.fr (#7031) next »