cvs: phpdoc-fr /reference/mongo book.xml configure.xml constants.xml examples.xml ini.xml reference.xml setup.xml

From: Date: Thu, 26 Feb 2009 06:15:36 +0000
Subject: cvs: phpdoc-fr /reference/mongo book.xml configure.xml constants.xml examples.xml ini.xml reference.xml setup.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6753@lists.php.net to get a copy of this message
dams Thu Feb 26 06:15:36 2009 UTC Added files: /phpdoc-fr/reference/mongo book.xml configure.xml constants.xml examples.xml ini.xml reference.xml setup.xml Log: initial translation

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mongo/book.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/book.xml +++ phpdoc-fr/reference/mongo/book.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <book xml:id="book.mongo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>Mongo</title> <titleabbrev>Mongo</titleabbrev> <preface xml:id="intro.mongo"> &reftitle.intro; <para> Ces fonctions permettent à PHP d'interagir avec les bases de données Mongo. Il est fortement recommandé de ne pas utiliser ces fonctions. Elles sont disponibles en version orientée objet : sous cette forme, elles sont bien mieux documentées et pratiques. <link xlink:href="http://www.mongodb.org/">API</link>. </para> <para> Pour plus d'information et pour télécharger Mongo, vous puvez vous rendre sur &url.mongo;. Les informations dédiées à PHP sont dans le <link xlink:href="http://www.mongodb.org">PHP Language Center</link>. </para> </preface> &reference.mongo.setup; &reference.mongo.constants; &reference.mongo.examples; &reference.mongo.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/mongo/configure.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/configure.xml +++ phpdoc-fr/reference/mongo/configure.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <section xml:id="mongo.installation" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.install; <!-- There are various PECL related entities in language-snippets.ent --> <para> Pour obtenir les sources : <screen> $ cvs -d :pserver:cvsread@cvs.php.net:/repository checkout pecl/mongo # password: phpfi </screen> </para> <para> Pour compiler, utilisez les commandes suivantes : <screen> $ cd pecl/mongo $ ./configure --enable-mongo $ make </screen> <table> <title>Options utilisées par configure</title> <tgroup cols="4"> <thead> <row> <entry>Option</entry> <entry>Valeur par défaut</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>--with-mongodb=/path/to/mongodb</entry> <entry>/usr/local</entry> <entry>Chemin de l'installation locale mongodb</entry> </row> <row> <entry>--with-boost=/path/to/boost/libs</entry> <entry>/usr/lib/</entry> <entry>Chemin pour booster les bibliothèques</entry> </row> <row> <entry>--enable-64</entry> <entry>no</entry> <entry>Compile pour les architectures 64 bits</entry> </row> </tbody> </tgroup> </table> </para> <para> Note pour les utilisateurs Mac OS X : le Web Sharing utilise un PHP 64 bits, et la version en ligne de commande utilise PHP 32 bits. Par conséquent, vous devez utiliser l'option --enable-64 pour forcer PHP en ligne de commande à compiler une version compatible Apache. </para> <para> Pour installer : <screen> $ sudo cp modules/mongo.so /path/to/extension_dir $ sudo cp src/php/* /path/to/php/includes/mongo/ </screen> </para> <para> php.ini settings: Pour charger cette extension au démarrage, ajoutez cette ligne : <screen> extension=mongo.so </screen> Vous devriez aussi revoir les configurations suivantes : <screen> [mongo] ; Default host for mongo connection mongo.default_host = localhost ; Default port for mongo database mongo.default_port = 27017 ; If the driver should reconnect to mongo mongo.auto_reconnect = true </screen> </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mongo/constants.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/constants.xml +++ phpdoc-fr/reference/mongo/constants.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <appendix xml:id="mongo.constants" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.constants; &no.constants; <para> <table xml:id="mysql.client-flags"> <title>Opérateurs de comparaison Mongo</title> <tgroup cols="2"> <thead> <row> <entry>Constante</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>MONGO_LT</entry> <entry>Inférieur, strict</entry> </row> <row> <entry>MONGO_LTE</entry> <entry>Inférieur ou égal</entry> </row> <row> <entry>MONGO_GT</entry> <entry>Supérieur, strict</entry> </row> <row> <entry>MONGO_GTE</entry> <entry>Supérieur ou égal</entry> </row> <row> <entry>MONGO_IN</entry> <entry>Dans la liste suivante</entry> </row> <row> <entry>MONGO_NE</entry> <entry>Différent</entry> </row> </tbody> </tgroup> </table> </para> <para> Les constantes suivantes permettent de configurer le profilage de la base. <table> <title>Constantes de profilage Mongo</title> <tgroup cols="2"> <thead> <row> <entry>Constante</entry> <entry>Description</entry> </row> </thead> <tbody> <row> <entry>MONGO_PROFILING_OFF</entry> <entry> Désactive le profilage. </entry> </row> <row> <entry>MONGO_PROFILING_SLOW</entry> <entry> Surveille les opérations lentes. </entry> </row> <row> <entry>MONGO_PROFILING_ON</entry> <entry> Surveille toutes les opérations. </entry> </row> </tbody> </tgroup> </table> </para> </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/mongo/examples.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/examples.xml +++ phpdoc-fr/reference/mongo/examples.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <chapter xml:id="mongo.examples" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.examples; <para> Cet exemple montre comment se connecter, insérer un objet, demander un autre objet, et passer en revue les résultats de rquête, puis se déconnecter. </para> <example> <title>Exemple Mongo</title> <programlisting role="php"> <![CDATA[ <?php include "mongo.php"; // connexion $m = new Mongo(); // selection d'une base $db = $m->selectDatabase("comedy"); $collection = $db->selectCollection("cartoons"); // Ajout d'un élément $obj = array( "title" => "Calvin and Hobbes", "author" => "Bill Watterson" ); $collection->insert($obj); // Ajout d'un aute élément, avec une autre forme $obj = array( "title" => "XKCD", "online" => true ); $collection->insert($obj); // lecture de toute la collection $cursor = $collection->find(); // revue des résultats while( $cursor->hasNext() ) { $c = $cursor->next(); echo $c["title"] . "\n"; } // déconnexion $m->close(); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ Calvin and Hobbes XKCD ]]> </screen> </example> </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/mongo/ini.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/ini.xml +++ phpdoc-fr/reference/mongo/ini.xml <?xml version="1.0" encoding="iso-8859-1"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <section xml:id="mongo.configuration" xmlns="http://docbook.org/ns/docbook"> &reftitle.runtime; &extension.runtime; <para> <table> <title>&ConfigureOptions; Mongo</title> <tgroup cols="4"> <thead> <row> <entry>&Name;</entry> <entry>&Default;</entry> <entry>&Changeable;</entry> <entry>&Changelog;</entry> </row> </thead> <tbody> <row> <entry><link linkend="ini.mongo.default-host">mongo.default_host</link></entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry><link linkend="ini.mongo.default-port">mongo.default_port</link></entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> </row> <row> <entry><link linkend="ini.mongo.auto-reconnect">mongo.auto_reconnect</link></entry> <entry>NULL</entry> <entry>PHP_INI_ALL</entry> </row> </tbody> </tgroup> </table> &ini.php.constants; </para> &ini.descriptions.title; <para> <variablelist> <varlistentry xml:id="ini.mongo.default-host"> <term> <parameter>mongo.default_host</parameter> <type>string</type> </term> <listitem> <para> Nom d'hôte par défaut. <literal>"localhost"</literal> est recommandé. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.mongo.default-port"> <term> <parameter>mongo.default_port</parameter> <type>string</type> </term> <listitem> <para> Le numéro de port par défaut, à utiliser lors de la connexion à la base de données, si aucun port n'est spécifié. La valeur par défaut est 27017. </para> </listitem> </varlistentry> <varlistentry xml:id="ini.mongo.auto-reconnect"> <term> <parameter>mongo.auto_reconnect</parameter> <type>bool</type> </term> <listitem> <para> S'il faut se reconnecter automatiquement, lorsque la connexion à la base est perdue. </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 --> http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mongo/reference.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/reference.xml +++ phpdoc-fr/reference/mongo/reference.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <reference xml:id="ref.mongo" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <title>&Functions; Mongo</title> &reference.mongo.entities.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/mongo/setup.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/setup.xml +++ phpdoc-fr/reference/mongo/setup.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: no --> <chapter xml:id="mongo.setup" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> &reftitle.setup; <section xml:id="mongo.requirements"> &reftitle.required; <!-- Use &no.requirement; if there no requirement --> <para> Requiert PHP 5.0 et plus récent. Vous pouvez télécharger Mongo sur le site &url.mongo;. </para> </section> <!-- {{{ Installation --> &reference.mongo.configure; <!-- }}} --> <!-- {{{ Configuration --> &reference.mongo.ini; <!-- }}} --> </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 (#6753) next »