cvs: phpdoc-fr /reference/json reference.xml /reference/json/functions json_decode.xml json_encode.xml /reference/memcache ini.xml

From: Date: Sun, 06 Aug 2006 16:40:56 +0000
Subject: cvs: phpdoc-fr /reference/json reference.xml /reference/json/functions json_decode.xml json_encode.xml /reference/memcache ini.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-4975@lists.php.net to get a copy of this message
yannick Sun Aug 6 16:40:56 2006 UTC Added files: /phpdoc-fr/reference/json/functions json_decode.xml json_encode.xml /phpdoc-fr/reference/json reference.xml /phpdoc-fr/reference/memcache ini.xml Log: initial translation

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/json/functions/json_decode.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/json/functions/json_decode.xml +++ phpdoc-fr/reference/json/functions/json_decode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.json-decode"> <refnamediv> <refname>json_decode</refname> <refpurpose>Décode une chaîne JSON</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>mixed</type><methodname>json_decode</methodname> <methodparam><type>string</type><parameter>json</parameter></methodparam> <methodparam choice="opt"><type>bool</type><parameter>assoc</parameter></methodparam> </methodsynopsis> <para> Récupère une chaîne encodée JSON et la convertie en une variable &php;. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>json</parameter></term> <listitem> <para> La chaîne <parameter>json</parameter> à décoder. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>assoc</parameter></term> <listitem> <para> Lorsque ce paramètre vaut &true;, l'objet retourné sera converti en un tableau associatif. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un &object; ou, si le paramètre optionnel <parameter>assoc</parameter> vaut &true;, un tableau associatif. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>json_decode</function></title> <programlisting role="php"> <![CDATA[ <?php $json = '{"a":1,"b":2,"c":3,"d":4,"e":5}'; var_dump(json_decode($json)); var_dump(json_decode($json, true)); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ object(stdClass)#1 (5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) } array(5) { ["a"] => int(1) ["b"] => int(2) ["c"] => int(3) ["d"] => int(4) ["e"] => int(5) } ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>json_encode</function></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/json/functions/json_encode.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/json/functions/json_encode.xml +++ phpdoc-fr/reference/json/functions/json_encode.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <refentry id="function.json-encode"> <refnamediv> <refname>json_encode</refname> <refpurpose>Retourne le représentation JSON d'une valeur</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>json_encode</methodname> <methodparam><type>mixed</type><parameter>value</parameter></methodparam> </methodsynopsis> <para> Retourne une chaîne contenant la représentation JSON de la valeur <parameter>value</parameter>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>value</parameter></term> <listitem> <para> La valeur à encoder. Peut être de n'importe quel type, excepté une &resource;. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une chaîne encodé JSON. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>json_encode</function></title> <programlisting role="php"> <![CDATA[ <?php $arr = array ('a'=>1,'b'=>2,'c'=>3,'d'=>4,'e'=>5); echo json_encode($arr); ?> ]]> </programlisting> &example.outputs; <screen> <![CDATA[ {"a":1,"b":2,"c":3,"d":4,"e":5} ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>json_decode</function></member> </simplelist> </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:"../../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/json/reference.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/json/reference.xml +++ phpdoc-fr/reference/json/reference.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <reference id="ref.json"> <title>Fonctions JSON</title> <titleabbrev>JSON</titleabbrev> <partintro> <section id="json.intro"> &reftitle.intro; <para> Cette extension implémente le format d'échange de données <literal>JavaScript Object Notation (JSON)</literal>. Le décodage est géré par un moteur d'analyse basé sur le JSON_checker écrit par Douglas Crockford. </para> </section> <section id="json.requirements"> &reftitle.required; <para> Depuis &php; 5.2.0, l'extension JSON est fournit et compilé dans &php; par défaut. </para> <para> &pecl.info; <ulink url="&url.pecl.package;json">&url.pecl.package;json</ulink> </para> </section> </partintro> &reference.json.functions; </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:"../../../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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/memcache/ini.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/memcache/ini.xml +++ phpdoc-fr/reference/memcache/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <section id="memcache.ini"> &reftitle.runtime; &extension.runtime; <para> <table> <title>Options de configuration Memcache</title> <tgroup cols="4"> <thead> <row> <entry>Nom</entry> <entry>Défaut</entry> <entry>Modifiable</entry> <entry>Changelog</entry> </row> </thead> <tbody> <row> <entry>memcache.allow_failover</entry> <entry>"1"</entry> <entry>PHP_INI_ALL</entry> <entry>Disponible depuis Memcache 2.0.2</entry> </row> <row> <entry>memcache.chunk_size</entry> <entry>"8192"</entry> <entry>PHP_INI_ALL</entry> <entry>Disponible depuis Memcache 2.0.2</entry> </row> <row> <entry>memcache.default_port</entry> <entry>"11211"</entry> <entry>PHP_INI_ALL</entry> <entry>Disponible depuis Memcache 2.0.2</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry id="ini.memcache.allow-failover"> <term> <parameter>memcache.allow_failover</parameter> &boolean; </term> <listitem> <para> Si l'on doit basculer sur d'autres serveurs en cas d'erreur. </para> </listitem> </varlistentry> <varlistentry id="ini.memcache.chunk-size"> <term> <parameter>memcache.chunk_size</parameter> &integer; </term> <listitem> <para> Les données doivent être transférées en morceaux de cette taille ; Configurer cette valeur à une petite valeur provoque plus d'écritures sur le réseau. Essayez d'augmenter cette valeur à 32768 si vous rencontrez des ralentissements inexplicables. </para> </listitem> </varlistentry> <varlistentry id="ini.memcache.default-port"> <term> <parameter>memcache.default_port</parameter> &string; </term> <listitem> <para> Le numéro du port TCP par défaut à utiliser lors de la connexion au serveur memcache si aucun autre port n'est spécifié. </para> </listitem> </varlistentry> </variablelist> </para> </section> <!-- 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:"../../../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 -->
« previous php.doc.fr (#4975) next »