cvs: phpdoc-fr /reference/mongo mongobindata.xml mongocode.xml mongodate.xml mongoid.xml mongoregex.xml /reference/mongo/mongobindata construct.xml
tostring.xml /reference/mongo/mongocode construct.xml tostring.xml /reference/mongo/mongodate construct.xml tostring.xml /reference/mongo/mongoid
construct.xml tostring.xml /reference/mongo/mongoregex construct.xml tostring.xml

From: Date: Thu, 26 Mar 2009 13:47:13 +0000
Subject: cvs: phpdoc-fr /reference/mongo mongobindata.xml mongocode.xml mongodate.xml mongoid.xml mongoregex.xml /reference/mongo/mongobindata construct.xml
tostring.xml /reference/mongo/mongocode construct.xml tostring.xml /reference/mongo/mongodate construct.xml tostring.xml /reference/mongo/mongoid
construct.xml tostring.xml /reference/mongo/mongoregex construct.xml tostring.xml
Groups: php.doc.fr 
Request: Send a blank email to doc-fr+get-6856@lists.php.net to get a copy of this message
dams Thu Mar 26 13:47:13 2009 UTC Added files: /phpdoc-fr/reference/mongo mongobindata.xml mongocode.xml mongodate.xml mongoid.xml mongoregex.xml /phpdoc-fr/reference/mongo/mongobindata construct.xml tostring.xml /phpdoc-fr/reference/mongo/mongocode construct.xml tostring.xml /phpdoc-fr/reference/mongo/mongodate construct.xml tostring.xml /phpdoc-fr/reference/mongo/mongoid construct.xml tostring.xml /phpdoc-fr/reference/mongo/mongoregex construct.xml tostring.xml Log: initial translation

http://cvs.php.net/viewvc.cgi/phpdoc-fr/reference/mongo/mongobindata.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongobindata.xml +++ phpdoc-fr/reference/mongo/mongobindata.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xml:id="class.mongobindata" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe MongoBinData</title> <titleabbrev>MongoBinData</titleabbrev> <partintro> <!-- {{{ MongoBinData intro --> <section xml:id="mongobindata.intro"> &reftitle.intro; <para> Un objet qui peut être utilisé pour stocker ou lire des données binaires issues de la base. </para> </section> <!-- }}} --> <section xml:id="mongobindata.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>MongoBinData</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>MongoBinData</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongobindata')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> </partintro> &reference.mongo.entities.mongobindata; </phpdoc:classref> <!-- 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/mongocode.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongocode.xml +++ phpdoc-fr/reference/mongo/mongocode.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.2 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xml:id="class.mongocode" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe MongoCode</title> <titleabbrev>MongoCode</titleabbrev> <partintro> <!-- {{{ MongoId intro --> <section xml:id="mongocode.intro"> &reftitle.intro; <para> Cette classe repreésente du code JavaScript pour la base de données. </para> <para> Les objets MongoCode sont composés de deux parties : une chaîne de code, et un contexte optionnel. La chaîne de code doit être du code JavaScript valide. Le contexte est un tableau associatif avec un nombre variable de paires clé-valeur. </para> </section> <!-- }}} --> <section xml:id="mongocode.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>MongoCode</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>MongoCode</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongocode')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> </partintro> &reference.mongo.entities.mongocode; </phpdoc:classref> <!-- 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/mongodate.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongodate.xml +++ phpdoc-fr/reference/mongo/mongodate.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xml:id="class.mongodate" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe MongoDate</title> <titleabbrev>MongoDate</titleabbrev> <partintro> <!-- {{{ Mongodate intro --> <section xml:id="mongodate.intro"> &reftitle.intro; <para> Représente un objet date pour la base. </para> </section> <!-- }}} --> <section xml:id="mongodate.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>MongoDate</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>MongoDate</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodate')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> </partintro> &reference.mongo.entities.mongodate; </phpdoc:classref> <!-- 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/mongoid.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoid.xml +++ phpdoc-fr/reference/mongo/mongoid.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xml:id="class.mongoid" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe MongoId</title> <titleabbrev>MongoId</titleabbrev> <partintro> <!-- {{{ MongoId intro --> <section xml:id="mongoid.intro"> &reftitle.intro; <para> Un identifiant unique créé par les objets de la base. </para> </section> <!-- }}} --> <section xml:id="mongoid.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>MongoId</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>MongoId</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongoid')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> </partintro> &reference.mongo.entities.mongoid; </phpdoc:classref> <!-- 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/mongoregex.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoregex.xml +++ phpdoc-fr/reference/mongo/mongoregex.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <phpdoc:classref xml:id="class.mongoregex" xmlns:phpdoc="http://php.net/ns/phpdoc" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude"> <title>La classe MongoRegex</title> <titleabbrev>MongoRegex</titleabbrev> <partintro> <!-- {{{ MongoRegex intro --> <section xml:id="mongoregex.intro"> &reftitle.intro; <para> Cette classe sert à interagir avec une expression rationnelle extraite de la base, ou bien pour envoyer une expression rationnelle vers la base. </para> </section> <!-- }}} --> <section xml:id="mongoregex.synopsis"> &reftitle.classsynopsis; <!-- {{{ Synopsis --> <classsynopsis> <ooclass><classname>MongoRegex</classname></ooclass> <!-- {{{ Class synopsis --> <classsynopsisinfo> <ooclass> <classname>MongoRegex</classname> </ooclass> </classsynopsisinfo> <!-- }}} --> <classsynopsisinfo role="comment">&class.methods;</classsynopsisinfo> <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongoregex')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[1])" /> </classsynopsis> <!-- }}} --> </section> </partintro> &reference.mongo.entities.mongoregex; </phpdoc:classref> <!-- 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/mongobindata/construct.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongobindata/construct.xml +++ phpdoc-fr/reference/mongo/mongobindata/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongobindata.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoBinData::__construct</refname> <refpurpose>Crée un nouvel objet de données binaires</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <methodname>MongoBinData::__construct</methodname> <methodparam><type>string</type><parameter>data</parameter></methodparam> <methodparam choice="opt"><type>int</type><parameter>type</parameter></methodparam> </methodsynopsis> <para> Crée un nouvel objet de données binaires. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>data</parameter> </term> <listitem> <para> Données binaires. </para> </listitem> </varlistentry> <varlistentry> <term> <parameter>int</parameter> </term> <listitem> <para> Le type de données. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un nouvel objet de données binaires. </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/mongo/mongobindata/tostring.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongobindata/tostring.xml +++ phpdoc-fr/reference/mongo/mongobindata/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongobindata.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoBinData::__toString</refname> <refpurpose>La représentation en chaîne de l'objet binaire</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type><methodname>MongoBinData::__toString</methodname> <void /> </methodsynopsis> <para> Retourne une chaîne représentant l'objet binaire. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Un tableau d'octets binaires. </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/mongo/mongocode/construct.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongocode/construct.xml +++ phpdoc-fr/reference/mongo/mongocode/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongocode.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCode::__construct</refname> <refpurpose>Crée un nouvel objet de code</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <methodname>MongoCode::__construct</methodname> <methodparam><type>string</type><parameter>code</parameter></methodparam> <methodparam choice="opt"><type>array</type><parameter>scope</parameter><initializer>array()</initializer></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>code</parameter> </term> <listitem> <para> Une chaîne de code. </para> </listitem> </varlistentry> <varlistentry> <term> <parameter>scope</parameter> </term> <listitem> <para> Un contexte d'exécution du code. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un nouvel objet de code. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title>Exemple avec <function>MongoCode::__construct</function></title> <programlisting role="php"> <![CDATA[ <?php $code = new MongoCode('function(x) { for(i=0;i<10;i++) { db.foo.update({x:i}, {x:i+1}); } return x-1; }', array("x" => 4)); var_dump($code); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ object(MongoCode)#1 (2) { ["scope"]=> array(1) { ["x"]=> int(4) } ["code"]=> string(80) "function(x) { for(i=0;i<10;i++) { db.foo.update({x:i}, {x:i+1}); } return x-1; }" } ]]> </screen> </example> </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/mongo/mongocode/tostring.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongocode/tostring.xml +++ phpdoc-fr/reference/mongo/mongocode/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongocode.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoCode::__toString</refname> <refpurpose>Retourne le code sous forme de chaîne</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type><methodname>MongoCode::__toString</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Ce code, le contexte n'et pas retourné. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title>Exemple avec <function>MongoCode::__toString</function></title> <programlisting role="php"> <![CDATA[ <?php $code = new MongoCode('return x;', array("x"=>"hi")); echo "$code\n"; $code = new MongoCode('function() { for(i=0;i<10;i++) { db.foo.update({x:i}, {x:i+1}); } }'); echo "$code\n"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ return x; function() { for(i=0;i<10;i++) { db.foo.update({x:i}, {x:i+1}); } } ]]> </screen> </example> </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/mongo/mongodate/construct.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongodate/construct.xml +++ phpdoc-fr/reference/mongo/mongodate/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongodate.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoDate::__construct</refname> <refpurpose>Crée une nouvelle date</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <methodname>MongoDate::__construct</methodname> <methodparam choice="opt"><type>long</type><parameter>secs</parameter></methodparam> </methodsynopsis> <para> Créée une nouvelle date. Si aucun paramètre n'est donné, la date courante est utilisée. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>secs</parameter> </term> <listitem> <para> Le nombre de secondes depuis le 1er janvier 1970. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne la nouvelle date. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>MongoDate::__construct</function></title> <para> Cet exemple montre comment créer une date à partir de la date et l'heure courante, et une date à partir d'un timestamp. </para> <programlisting role="php"> <![CDATA[ <?php $d = new MongoDate(); echo "$d\n"; $d = new MongoDate(1234567890); echo "$d\n"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ 0.23660600 1235685067 0.00000000 1234567890 ]]> </screen> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><methodname>MongoDate::__toString</methodname></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/mongo/mongodate/tostring.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongodate/tostring.xml +++ phpdoc-fr/reference/mongo/mongodate/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongodate.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoDate::__toString</refname> <refpurpose>Retourne la date sous forme de chaîne</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type><methodname>MongoDate::__toString</methodname> <void /> </methodsynopsis> <para> Retourne l'objet de date sous forme de chaîne de caractères, similairement au résultat de la fonction <function>microtime</function>. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> This date. </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/mongo/mongoid/construct.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoid/construct.xml +++ phpdoc-fr/reference/mongo/mongoid/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.4 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongoid.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoId::__construct</refname> <refpurpose>Crée un nouvel identifiant</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <methodname>MongoId::__construct</methodname> <methodparam choice="opt"><type>string</type><parameter>id</parameter><initializer>NULL</initializer></methodparam> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>id</parameter> </term> <listitem> <para> Une chaîne à utiliser comme identifiant. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne un nouvel identifiant. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title>Exemple avec <function>MongoId::__construct</function></title> <para> Cet exemple montre comment crée un nouvel identifiant. C'est rarement nécessaire, car le pilote ajoute automatiquement les identifiants avant de les stocker en base. </para> <programlisting role="php"> <![CDATA[ <?php $id1 = new MongoId(); echo "$id1\n"; $id1 = new MongoId(); echo "$id2\n"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ 49a7011a05c677b9a916612a 49a702d5450046d3d515d10d ]]> </screen> <para> Notez que le deuxième nombre hexadécimal est plus grand que le premier. </para> </example> <example> <title>Exemple avec <function>MongoId::__construct</function> et des paramètres</title> <para> Cet exemple montre comment utiliser une chaîne de paramètres pour initialiser un objet <classname>MongoId</classname> avec une valeur donnée. </para> <programlisting role="php"> <![CDATA[ <?php $id1 = new MongoId(); // Crée un nouvel identifiant pour $id1 $id2 = new MongoId("$id1"); // montre que $id1 et $id2 ont la même valeur hexadécimal var_dump($id1 == $id2); ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ bool(true) ]]> </screen> </example> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><methodname>MongoId::__toString</methodname></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/mongo/mongoid/tostring.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoid/tostring.xml +++ phpdoc-fr/reference/mongo/mongoid/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.3 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongoid.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoId::__toString</refname> <refpurpose>Retourne une représentation hexadécimale de cet identifiant</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type><methodname>MongoId::__toString</methodname> <void/> </methodsynopsis> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> This id. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <example> <title>Exemple avec <function>MongoId::__toString</function></title> <programlisting role="php"> <![CDATA[ <?php $obj = array( "x" => "y" ); $m = new Mongo(); $collection = $m->selectDB("foo")->selectCollection("bar"); $collection->insert($obj); $collection->insert($obj); $cursor = $collection->find(); $r1 = cursor->next(); $r2 = cursor->next(); echo $r1["_id"] . "\n"; echo $r2["_id"] . "\n"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ 49a7011a05c677b9a916612a 49a702d5450046d3d515d10d ]]> </screen> </example> </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/mongo/mongoregex/construct.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoregex/construct.xml +++ phpdoc-fr/reference/mongo/mongoregex/construct.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongoregex.construct" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoRegex::__construct</refname> <refpurpose>Crée une nouvelle expression rationnelle</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <methodname>MongoRegex::__construct</methodname> <methodparam><type>string</type><parameter>regex</parameter></methodparam> </methodsynopsis> <para> Crée une nouvelle expression rationnelle. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term> <parameter>regex</parameter> </term> <listitem> <para> Expression rationnelle, sous la forme <literal>/expression/options</literal>. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Retourne une expression rationelle. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>MongoRegex::__construct</function></title> <para> Cet exemple montre comment utiliser une expression rationnelle pour rechercher les documents ayant un nom d'utilisateur qui correspond à une expression rationelle. </para> <programlisting role="php"> <![CDATA[ <?php $joe_search = new MongoRegex("/j[o0]e/i"); $cursor = $collection->find(array("username" => $joe_search)); ?> ]]> </programlisting> </example> </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><methodname>MongoRegex::__toString</methodname></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/mongo/mongoregex/tostring.xml?view=markup&rev=1.1 Index: phpdoc-fr/reference/mongo/mongoregex/tostring.xml +++ phpdoc-fr/reference/mongo/mongoregex/tostring.xml <?xml version="1.0" encoding="utf-8"?> <!-- $Revision: 1.1 $ --> <!-- EN-Revision: 1.1 Maintainer: dams Status: ready --> <!-- Reviewed: yes --> <refentry xml:id="mongoregex.tostring" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>MongoRegex::__toString</refname> <refpurpose>Retourne une expression rationnelle sous forme de chaîne</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <modifier>public</modifier> <type>string</type><methodname>MongoRegex::__toString</methodname> <void /> </methodsynopsis> <para> Retourne une chaîne représentant l'expression rationnelle. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; &no.function.parameters; </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> L'expression rationnelle, sous la forme <literal>"/expr/flags"</literal>. </para> </refsect1> <refsect1 role="examples"> &reftitle.examples; <para> <example> <title>Exemple avec <function>MongoRegex::__toString</function></title> <programlisting role="php"> <![CDATA[ <?php $r = new MongoRegex( "/[a-fA-F0-9]{16}/g" ); echo $r->regex . "\n"; echo $r->flags . "\n"; echo "$r\n"; ?> ]]> </programlisting> &example.outputs.similar; <screen> <![CDATA[ [a-fA-F0-9]{16} g /[a-fA-F0-9]{16}/g ]]> </screen> </example> </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 -->
« previous php.doc.fr (#6856) next »