cvs: phpdoc-fr /reference/tokenizer book.xml examples.xml setup.xml /reference/url book.xml setup.xml /reference/vpopmail book.xml constants.xml
setup.xml /reference/wddx book.xml constants.xml examples.xml setup.xml

From: Date: Mon, 12 May 2008 09:09:08 +0000
Subject: cvs: phpdoc-fr /reference/tokenizer book.xml examples.xml setup.xml /reference/url book.xml setup.xml /reference/vpopmail book.xml constants.xml
setup.xml /reference/wddx book.xml constants.xml examples.xml setup.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-5868@lists.php.net to get a copy of this message
yannick Mon May 12 09:09:08 2008 UTC Added files: /phpdoc-fr/reference/tokenizer book.xml examples.xml setup.xml /phpdoc-fr/reference/url book.xml setup.xml /phpdoc-fr/reference/vpopmail book.xml constants.xml setup.xml /phpdoc-fr/reference/wddx book.xml constants.xml examples.xml setup.xml Log: new translation

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/tokenizer/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/tokenizer/book.xml +++ phpdoc-fr/reference/tokenizer/book.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: basic.other --> <!-- Membership: core --> <book xml:id="book.tokenizer" xmlns="http://docbook.org/ns/docbook"> <title>&Functions; Tokenizer</title> <titleabbrev>Tokenizer</titleabbrev> <preface xml:id="intro.tokenizer"> &reftitle.intro; <para> Les fonctions tokenizer fournissent une interface au tokenizer PHP interne au moteur Zend. Par l'utilisation de ces fonctions, vous pouvez écrire vos propres outils PHP d'analyse ou de modifications, sans avoir à vous soucier de la spécification du langage au niveau lexical. </para> <para> Voir aussi l'<link linkend="tokens">appendice sur les tokens</link>. </para> </preface> &reference.tokenizer.setup; &reference.tokenizer.constants; &reference.tokenizer.examples; &reference.tokenizer.reference; </book> <!-- 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/tokenizer/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/tokenizer/examples.xml +++ phpdoc-fr/reference/tokenizer/examples.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <appendix xml:id="tokenizer.examples"> &reftitle.examples; <para> Voici un exemple simple de scripts PHP utilisant le tokenizer qui lit un fichier PHP, supprime tous les commentaires de la source et affiche uniquement le code. </para> <example> <title>Supprime les commentaires avec le tokenizer</title> <programlisting role="php"> <![CDATA[ <?php /* * T_ML_COMMENT n'existe pas en PHP 5. * Les lignes suivantes le définisse afin de rendre * compatible notre code. * * Ensuite, les 2 lignes définissent T_DOC_COMMENT uniquement pour PHP 5, * que nous masquons en T_ML_COMMENT pour PHP 4. */ if (!defined('T_ML_COMMENT')) { define('T_ML_COMMENT', T_COMMENT); } else { define('T_DOC_COMMENT', T_ML_COMMENT); } $source = file_get_contents('example.php'); $tokens = token_get_all($source); foreach ($tokens as $token) { if (is_string($token)) { // un simple caractère token echo $token; } else { // tableau token list($id, $text) = $token; switch ($id) { case T_COMMENT: case T_ML_COMMENT: // nous avons défini ceci case T_DOC_COMMENT: // et ceci // Aucune action sur les commentaires break; default: // rien d'autre -> affiche "as is" echo $text; break; } } } ?> ]]> </programlisting> </example> </appendix> <!-- 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/tokenizer/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/tokenizer/setup.xml +++ phpdoc-fr/reference/tokenizer/setup.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="tokenizer.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <section xml:id="tokenizer.requirements"> &reftitle.required; &no.requirement; </section> &reference.tokenizer.configure; <section xml:id="tokenizer.configuration"> &reftitle.runtime; &no.config; </section> <section xml:id="tokenizer.resources"> &reftitle.resources; &no.resource; </section> </chapter> <!-- 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/url/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/url/book.xml +++ phpdoc-fr/reference/url/book.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: basic.other --> <!-- Membership: core --> <book xml:id="book.url" xmlns="http://docbook.org/ns/docbook"> <title>&Functions; URL</title> <titleabbrev>URLs</titleabbrev> <preface xml:id="intro.url"> &reftitle.intro; <para> Travaux avec les chaînes URL : encodage, décodage et analyse. </para> </preface> &reference.url.setup; &reference.url.constants; &reference.url.reference; </book> <!-- 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/url/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/url/setup.xml +++ phpdoc-fr/reference/url/setup.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="url.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <section xml:id="url.requirements"> &reftitle.required; &no.requirement; </section> <section xml:id="url.installation"> &reftitle.install; &no.install; </section> <section xml:id="url.configuration"> &reftitle.runtime; &no.config; </section> <section xml:id="url.resources"> &reftitle.resources; &no.resource; </section> </chapter> <!-- 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/vpopmail/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/vpopmail/book.xml +++ phpdoc-fr/reference/vpopmail/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: remote.mail --> <!-- Membership: pecl, external --> <!-- State: experimental --> <book xml:id="book.vpopmail" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>vpopmail</title> <!-- {{{ preface --> <preface xml:id="intro.vpopmail"> &reftitle.intro; &warn.experimental; <para> Cette extension a été retirée de PHP depuis PHP 4.3.0 et maintenant, réside en tant qu'extension <link xlink:href="&url.pecl.package;vpopmail">PECL</link>. </para> </preface> <!-- }}} --> &reference.vpopmail.setup; &reference.vpopmail.constants; &reference.vpopmail.reference; </book> <!-- 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/vpopmail/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/vpopmail/constants.xml +++ phpdoc-fr/reference/vpopmail/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="vpopmail.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/vpopmail/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/vpopmail/setup.xml +++ phpdoc-fr/reference/vpopmail/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <chapter xml:id="vpopmail.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="vpopmail.requirements"> &reftitle.required; &no.requirement; </section> <!-- }}} --> <!-- {{{ Installation --> &reference.vpopmail.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="vpopmail.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="vpopmail.resources"> &reftitle.resources; &no.resource; </section> <!-- }}} --> </chapter> <!-- 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/wddx/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/wddx/book.xml +++ phpdoc-fr/reference/wddx/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <!-- Purpose: webservice --> <!-- Membership: bundled, external --> <book xml:id="book.wddx" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>WDDX</title> <!-- {{{ preface --> <preface xml:id="intro.wddx"> &reftitle.intro; <para> Ces fonctions sont prévues pour fonnctionner avec <link xlink:href="&url.wddx;">WDDX</link>. </para> </preface> <!-- }}} --> &reference.wddx.setup; &reference.wddx.constants; &reference.wddx.examples; &reference.wddx.reference; </book> <!-- 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/wddx/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/wddx/constants.xml +++ phpdoc-fr/reference/wddx/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: yes --> <appendix xml:id="wddx.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; </appendix> <!-- 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/wddx/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/wddx/examples.xml +++ phpdoc-fr/reference/wddx/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <chapter xml:id="wddx.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <section xml:id="wddx.examples-serialize"> <para> Toutes les fonctions qui linéarisent les variables utilisent le premier élément d'un tableau pour déterminer si le tableau doit être linéarisé dans un tableau ou dans une structure. Si le premier élément a une chaîne de caractères en tant que clé, alors, il sera linéarisé dans une structure, sinon, dans un tableau. </para> <example> <title>Linéarisation d'une valeur simple avec WDDX</title> <programlisting role="php"> <![CDATA[ <?php echo wddx_serialize_value("PHP to WDDX packet example", "PHP packet"); ?> ]]> </programlisting> <para> Cet exemple affichera : </para> <screen> <![CDATA[ <wddxPacket version='1.0'><header comment='PHP packet'/><data> <string>PHP to WDDX packet example</string></data></wddxPacket> ]]> </screen> </example> <example> <title>Utilisation de paquets incrémentaux avec WDDX</title> <programlisting role="php"> <![CDATA[ <?php $pi = 3.1415926; $packet_id = wddx_packet_start("PHP"); wddx_add_vars($packet_id, "pi"); /* Suppose que $cities provient d'une base de données */ $cities = array("Austin", "Novato", "Seattle"); wddx_add_vars($packet_id, "cities"); $packet = wddx_packet_end($packet_id); echo $packet; ?> ]]> </programlisting> <para> Cet exemple affichera : </para> <screen> <![CDATA[ <wddxPacket version='1.0'><header comment='PHP'/><data><struct> <var name='pi'><number>3.1415926</number></var><var name='cities'> <array length='3'><string>Austin</string><string>Novato</string> <string>Seattle</string></array></var></struct></data></wddxPacket> ]]> </screen> </example> <note> <para> Si vous voulez linéariser das caractères non-ASCII, vous devez d'abord les convertir en UTF-8 (voir les fonctions <function>utf8_encode</function> et <function>iconv</function>). </para> </note> </section> </chapter> <!-- 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/wddx/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/wddx/setup.xml +++ phpdoc-fr/reference/wddx/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: yannick Status: ready --> <!-- Reviewed: no --> <chapter xml:id="wddx.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <!-- {{{ Requirements --> <section xml:id="wddx.requirements"> &reftitle.required; <para> Afin d'utiliser WDDX, vous devez installer la bibliothèque expat (qui est fournie avec Apache 1.3.7 ou supérieur). </para> </section> <!-- }}} --> <!-- {{{ Installation --> &reference.wddx.configure; <!-- }}} --> <!-- {{{ Configuration --> <section xml:id="wddx.configuration"> &reftitle.runtime; &no.config; </section> <!-- }}} --> <!-- {{{ Resources --> <section xml:id="wddx.resources"> &reftitle.resources; <para> Cette extension définit un identifiant de paquet WDDX, retourné par la fonction <function>wddx_packet_start</function>. </para> </section> <!-- }}} --> </chapter> <!-- 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 (#5868) next »