cvs: phpdoc-fr /reference/wddx configure.xml reference.xml /reference/wddx/functions wddx-add-vars.xml wddx-deserialize.xml wddx-packet-end.xml
wddx-packet-start.xml wddx-serialize-value.xml wddx-serialize-vars.xml
| From: | Yannick TORRES | Date: | Sat, 01 May 2004 10:37:52 +0000 |
| Subject: | cvs: phpdoc-fr /reference/wddx configure.xml reference.xml /reference/wddx/functions wddx-add-vars.xml wddx-deserialize.xml wddx-packet-end.xml wddx-packet-start.xml wddx-serialize-value.xml wddx-serialize-vars.xml |
||
| Groups: | php.doc.fr | ||
| Request: | Send a blank email to doc-fr+get-2377@lists.php.net to get a copy of this message | ||
yannick Sat May 1 06:37:52 2004 EDT
Modified files:
/phpdoc-fr/reference/wddx/functions wddx-add-vars.xml
wddx-deserialize.xml
wddx-packet-end.xml
wddx-packet-start.xml
wddx-serialize-value.xml
wddx-serialize-vars.xml
/phpdoc-fr/reference/wddx configure.xml reference.xml
Log:
synch with EN Revision
http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-add-vars' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.wddx-add-vars"> <refnamediv> <refname>wddx_add_vars</refname> - <refpurpose>Ajouter des variables à un paquet WDDX</refpurpose> + <refpurpose>Ajoute des variables à un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-deserialize' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-deserialize"> <refnamediv> <refname>wddx_deserialize</refname> - <refpurpose>Lire un paquet WDDX</refpurpose> + <refpurpose>Lit un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-packet-end' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-packet-end"> <refnamediv> <refname>wddx_packet_end</refname> - <refpurpose>Clos un paquet WDDX</refpurpose> + <refpurpose>Clôt un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,7 +13,7 @@ <methodparam><type>int</type><parameter>packet_id</parameter></methodparam> </methodsynopsis> <para> - <function>wddx_packet_end</function> clos un paquet WDDX repéré + <function>wddx_packet_end</function> clôt un paquet WDDX repéré par son identifiant <parameter>packet_id</parameter>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-packet-start' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-packet-start"> <refnamediv> <refname>wddx_packet_start</refname> - <refpurpose>Commencer un nouveau paquet WDDX avec une structure </refpurpose> + <refpurpose>Commence un nouveau paquet WDDX avec une structure </refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.4 phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.5 --- phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.4 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-serialize-value' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-serialize-value"> <refnamediv> <refname>wddx_serialize_value</refname> - <refpurpose>Enregistrer une valeur dans un paquet WDDX </refpurpose> + <refpurpose>Enregistre une valeur dans un paquet WDDX </refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-serialize-vars' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.wddx-serialize-vars"> <refnamediv> <refname>wddx_serialize_vars</refname> - <refpurpose>Enregistrer plusieurs valeurs dans un paquet WDDX</refpurpose> + <refpurpose>Enregistre plusieurs valeurs dans un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,10 +19,10 @@ variables passées en arguments. </para> <para> - <function>wddx_serialize_vars</function> prend un nombre variable d'arguments, - chacun d'entre eux pouvant être une chaîne contenant le nom d'une - variable, ou un tableau de chaîne de nom de variable, ou même - d'autres tableaux. + <function>wddx_serialize_vars</function> prend un nombre + variable d'arguments, chacun d'entre eux pouvant être une chaîne + contenant le nom d'une variable, ou un tableau de chaîne de + nom de variable, ou même d'autres tableaux. </para> <para> <example> @@ -33,12 +30,13 @@ <programlisting role="php"> <![CDATA[ <?php - $a = 1; - $b = 5.5; - $c = array("bleu", "orange", "violet"); - $d = "colors"; - $clvars = array("c", "d"); - print wddx_serialize_vars("a", "b", $clvars); +$a = 1; +$b = 5.5; +$c = array("bleu", "orange", "violet"); +$d = "colors"; + +$clvars = array("c", "d"); +echo wddx_serialize_vars("a", "b", $clvars); ?> ]]> </programlisting> @@ -46,14 +44,14 @@ </para> <para> L'exemple ci-dessus donnera : - <computeroutput> + <screen> <![CDATA[ <wddxPacket version='1.0'><header/><data><struct><var name='a'><number>1</number></var> <var name='b'><number>5.5</number></var><var name='c'><array length='3'> -<string>bleu</string><string>orange</string><string>violet</string></array> -</var><var name='d'><string>colors</string></var></struct></data></wddxPacket> +<string>bleu</string><string>orange</string><string>violet</string></array></var> +<var name='d'><string>colors</string></var></struct></data></wddxPacket> ]]> - </computeroutput> + </screen> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/configure.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/wddx/configure.xml diff -u phpdoc-fr/reference/wddx/configure.xml:1.3 phpdoc-fr/reference/wddx/configure.xml:1.4 --- phpdoc-fr/reference/wddx/configure.xml:1.3 Wed Feb 25 07:41:35 2004 +++ phpdoc-fr/reference/wddx/configure.xml Sat May 1 06:37:52 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <section id="wddx.installation"> &reftitle.install; <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/reference.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/wddx/reference.xml diff -u phpdoc-fr/reference/wddx/reference.xml:1.7 phpdoc-fr/reference/wddx/reference.xml:1.8 --- phpdoc-fr/reference/wddx/reference.xml:1.7 Wed Feb 25 07:41:35 2004 +++ phpdoc-fr/reference/wddx/reference.xml Sat May 1 06:37:52 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <reference id="ref.wddx"> <title>WDDX</title> <titleabbrev>WDDX</titleabbrev> @@ -47,11 +47,11 @@ type chaîne, le tableau sera enregistré sous la forme d'une structure, et sinon, sous la forme d'un tableau. <example> - <title>Enregistrer une valeur simple</title> + <title>Enregistre une valeur simple</title> <programlisting role="php"> <![CDATA[ <?php - print wddx_serialize_value("Exemple de paquet de PHP à WDDX", "Paquet PHP"); +echo wddx_serialize_value("Exemple de paquet de PHP à WDDX", "Paquet PHP"); ?> ]]> </programlisting> @@ -70,29 +70,36 @@ <programlisting role="php"> <![CDATA[ <?php - $pi = 3.1415926; - $packet_id = wddx_packet_start("PHP"); - wddx_add_vars($packet_id, "pi"); +$pi = 3.1415926; +$packet_id = wddx_packet_start("PHP"); +wddx_add_vars($packet_id, "pi"); /* Supposons que $villes provient d'une base de données */ - $villes = array("Paris", "Montréal", "Lyon"); - wddx_add_vars($packet_id, "villes"); +$villes = array("Paris", "Montréal", "Lyon"); +wddx_add_vars($packet_id, "villes"); - $packet = wddx_packet_end($packet_id); - print $packet; +$packet = wddx_packet_end($packet_id); +echo $packet; ?> ]]> </programlisting> <para> Cet exemple donnera : </para> - <programlisting role="php"> + <screen> <![CDATA[ <wddxPacket version='1.0'><header><comment>PHP</comment></header><data><struct><var name='pi'><number>3.1415926</number></var><var name='villes'><array length='3'><string>Paris</string><string>Montréal</string><string>Lyon</string></array></var></struct></data></wddxPacket> ]]> - </programlisting> + </screen> </example> </para> + + <note> + <para> + Si vous voulez sérialiser des caractères non-ASCII, vous devez + positionner la locale appropriée avant. (voir <function>setlocale</function>). + </para> + </note> </section> </partintro>
http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-add-vars.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-add-vars' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.3 Maintainer: yannick Status: ready --> <refentry id="function.wddx-add-vars"> <refnamediv> <refname>wddx_add_vars</refname> - <refpurpose>Ajouter des variables à un paquet WDDX</refpurpose> + <refpurpose>Ajoute des variables à un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-deserialize.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-deserialize' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-deserialize"> <refnamediv> <refname>wddx_deserialize</refname> - <refpurpose>Lire un paquet WDDX</refpurpose> + <refpurpose>Lit un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-packet-end.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-packet-end' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-packet-end"> <refnamediv> <refname>wddx_packet_end</refname> - <refpurpose>Clos un paquet WDDX</refpurpose> + <refpurpose>Clôt un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -16,7 +13,7 @@ <methodparam><type>int</type><parameter>packet_id</parameter></methodparam> </methodsynopsis> <para> - <function>wddx_packet_end</function> clos un paquet WDDX repéré + <function>wddx_packet_end</function> clôt un paquet WDDX repéré par son identifiant <parameter>packet_id</parameter>. </para> </refsect1> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-packet-start.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-packet-start' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-packet-start"> <refnamediv> <refname>wddx_packet_start</refname> - <refpurpose>Commencer un nouveau paquet WDDX avec une structure </refpurpose> + <refpurpose>Commence un nouveau paquet WDDX avec une structure </refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml?r1=1.4&r2=1.5&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.4 phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.5 --- phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml:1.4 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-serialize-value.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.4 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-serialize-value' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.5 $ --> +<!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <refentry id="function.wddx-serialize-value"> <refnamediv> <refname>wddx_serialize_value</refname> - <refpurpose>Enregistrer une valeur dans un paquet WDDX </refpurpose> + <refpurpose>Enregistre une valeur dans un paquet WDDX </refpurpose> </refnamediv> <refsect1> <title>Description</title> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml?r1=1.5&r2=1.6&ty=u Index: phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml diff -u phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.5 phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.6 --- phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml:1.5 Tue Feb 24 13:14:50 2004 +++ phpdoc-fr/reference/wddx/functions/wddx-serialize-vars.xml Sat May 1 06:37:52 2004 @@ -1,13 +1,10 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.5 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> - -<!-- splitted from ./fr/functions/wddx.xml, last change in rev 1.2 --> -<!-- last change to 'wddx-serialize-vars' in en/ tree in rev 1.2 --> +<!-- $Revision: 1.6 $ --> +<!-- EN-Revision: 1.4 Maintainer: yannick Status: ready --> <refentry id="function.wddx-serialize-vars"> <refnamediv> <refname>wddx_serialize_vars</refname> - <refpurpose>Enregistrer plusieurs valeurs dans un paquet WDDX</refpurpose> + <refpurpose>Enregistre plusieurs valeurs dans un paquet WDDX</refpurpose> </refnamediv> <refsect1> <title>Description</title> @@ -22,10 +19,10 @@ variables passées en arguments. </para> <para> - <function>wddx_serialize_vars</function> prend un nombre variable d'arguments, - chacun d'entre eux pouvant être une chaîne contenant le nom d'une - variable, ou un tableau de chaîne de nom de variable, ou même - d'autres tableaux. + <function>wddx_serialize_vars</function> prend un nombre + variable d'arguments, chacun d'entre eux pouvant être une chaîne + contenant le nom d'une variable, ou un tableau de chaîne de + nom de variable, ou même d'autres tableaux. </para> <para> <example> @@ -33,12 +30,13 @@ <programlisting role="php"> <![CDATA[ <?php - $a = 1; - $b = 5.5; - $c = array("bleu", "orange", "violet"); - $d = "colors"; - $clvars = array("c", "d"); - print wddx_serialize_vars("a", "b", $clvars); +$a = 1; +$b = 5.5; +$c = array("bleu", "orange", "violet"); +$d = "colors"; + +$clvars = array("c", "d"); +echo wddx_serialize_vars("a", "b", $clvars); ?> ]]> </programlisting> @@ -46,14 +44,14 @@ </para> <para> L'exemple ci-dessus donnera : - <computeroutput> + <screen> <![CDATA[ <wddxPacket version='1.0'><header/><data><struct><var name='a'><number>1</number></var> <var name='b'><number>5.5</number></var><var name='c'><array length='3'> -<string>bleu</string><string>orange</string><string>violet</string></array> -</var><var name='d'><string>colors</string></var></struct></data></wddxPacket> +<string>bleu</string><string>orange</string><string>violet</string></array></var> +<var name='d'><string>colors</string></var></struct></data></wddxPacket> ]]> - </computeroutput> + </screen> </para> </refsect1> </refentry> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/configure.xml?r1=1.3&r2=1.4&ty=u Index: phpdoc-fr/reference/wddx/configure.xml diff -u phpdoc-fr/reference/wddx/configure.xml:1.3 phpdoc-fr/reference/wddx/configure.xml:1.4 --- phpdoc-fr/reference/wddx/configure.xml:1.3 Wed Feb 25 07:41:35 2004 +++ phpdoc-fr/reference/wddx/configure.xml Sat May 1 06:37:52 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.3 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.4 $ --> +<!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <section id="wddx.installation"> &reftitle.install; <para> http://cvs.php.net/diff.php/phpdoc-fr/reference/wddx/reference.xml?r1=1.7&r2=1.8&ty=u Index: phpdoc-fr/reference/wddx/reference.xml diff -u phpdoc-fr/reference/wddx/reference.xml:1.7 phpdoc-fr/reference/wddx/reference.xml:1.8 --- phpdoc-fr/reference/wddx/reference.xml:1.7 Wed Feb 25 07:41:35 2004 +++ phpdoc-fr/reference/wddx/reference.xml Sat May 1 06:37:52 2004 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.7 $ --> -<!-- EN-Revision: 1.1 Maintainer: nobody Status: partial --> +<!-- $Revision: 1.8 $ --> +<!-- EN-Revision: 1.9 Maintainer: yannick Status: ready --> <reference id="ref.wddx"> <title>WDDX</title> <titleabbrev>WDDX</titleabbrev> @@ -47,11 +47,11 @@ type chaîne, le tableau sera enregistré sous la forme d'une structure, et sinon, sous la forme d'un tableau. <example> - <title>Enregistrer une valeur simple</title> + <title>Enregistre une valeur simple</title> <programlisting role="php"> <![CDATA[ <?php - print wddx_serialize_value("Exemple de paquet de PHP à WDDX", "Paquet PHP"); +echo wddx_serialize_value("Exemple de paquet de PHP à WDDX", "Paquet PHP"); ?> ]]> </programlisting> @@ -70,29 +70,36 @@ <programlisting role="php"> <![CDATA[ <?php - $pi = 3.1415926; - $packet_id = wddx_packet_start("PHP"); - wddx_add_vars($packet_id, "pi"); +$pi = 3.1415926; +$packet_id = wddx_packet_start("PHP"); +wddx_add_vars($packet_id, "pi"); /* Supposons que $villes provient d'une base de données */ - $villes = array("Paris", "Montréal", "Lyon"); - wddx_add_vars($packet_id, "villes"); +$villes = array("Paris", "Montréal", "Lyon"); +wddx_add_vars($packet_id, "villes"); - $packet = wddx_packet_end($packet_id); - print $packet; +$packet = wddx_packet_end($packet_id); +echo $packet; ?> ]]> </programlisting> <para> Cet exemple donnera : </para> - <programlisting role="php"> + <screen> <![CDATA[ <wddxPacket version='1.0'><header><comment>PHP</comment></header><data><struct><var name='pi'><number>3.1415926</number></var><var name='villes'><array length='3'><string>Paris</string><string>Montréal</string><string>Lyon</string></array></var></struct></data></wddxPacket> ]]> - </programlisting> + </screen> </example> </para> + + <note> + <para> + Si vous voulez sérialiser des caractères non-ASCII, vous devez + positionner la locale appropriée avant. (voir <function>setlocale</function>). + </para> + </note> </section> </partintro>