Skip to content

Sync mongodb driver #2179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 12 additions & 17 deletions reference/mongodb/mongodb/driver/cursor/getid.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: cf2b279980fc54b7f2602a0687652c170a906930 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<refentry xml:id="mongodb-driver-cursor.getid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand All @@ -11,21 +11,12 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>final</modifier> <modifier>public</modifier> <type class="union"><type>MongoDB\Driver\CursorId</type><type>MongoDB\BSON\Int64</type></type><methodname>MongoDB\Driver\Cursor::getId</methodname>
<methodparam choice="opt"><type>bool</type><parameter>asInt64</parameter><initializer>&false;</initializer></methodparam>
<modifier>final</modifier> <modifier>public</modifier> <type>MongoDB\BSON\Int64</type><methodname>MongoDB\Driver\Cursor::getId</methodname>
<void/>
</methodsynopsis>
<para>
Renvoie l'ID de ce curseur, qui identifie de manière unique le curseur sur le serveur.
</para>
<warning>
<para>
Retourner un objet <classname>MongoDB\Driver\CursorId</classname> depuis
cette méthode est <emphasis>DÉPRÉCIÉ</emphasis> depuis la version 1.20.0 de
l'extension. Dans la version 2.0, l'argument <parameter>asInt64</parameter>
sera supprimé et cette méthode retournera toujours un objet
<classname>MongoDB\BSON\Int64</classname>.
</para>
</warning>
</refsect1>

<refsect1 role="parameters">
Expand All @@ -36,10 +27,8 @@
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Renvoie l'ID de ce curseur. Si <parameter>asInt64</parameter> est &true;, l'ID
sera retourné sous la forme d'un objet <classname>MongoDB\BSON\Int64</classname> ;
sinon, il sera retourné sous la forme d'un objet
<classname>MongoDB\Driver\CursorId</classname> et un avertissement de dépréciation sera émis.
Renvoie l'ID de ce curseur. L'ID sera retourné sous la forme d'un objet
<classname>MongoDB\BSON\Int64</classname>.
</para>
</refsect1>

Expand All @@ -62,6 +51,13 @@
</row>
</thead>
<tbody>
<row>
<entry>PECL mongodb 2.0.0</entry>
<entry>
Le type de retour a été changé de <classname>MongoDB\BSON\Int64</classname>
Le paramètre <parameter>asInt64</parameter> a été supprimé.
</entry>
</row>
<row>
<entry>PECL mongodb 1.20.0</entry>
<entry>
Expand Down Expand Up @@ -121,7 +117,6 @@ object(MongoDB\BSON\Int64)#5 (1) {
<refsect1 role="seealso">
&reftitle.seealso;
<simplelist>
<member><classname>MongoDB\Driver\CursorId</classname></member>
<member><classname>MongoDB\BSON\Int64</classname></member>
</simplelist>
</refsect1>
Expand Down
4 changes: 2 additions & 2 deletions reference/mongodb/mongodb/driver/cursorinterface/getid.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 73789d960f338c138390304c251451851485e7b7 Maintainer: Fan2Shrek Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
<!-- Reviewed: yes -->
<refentry xml:id="mongodb-driver-cursorinterface.getid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
Expand All @@ -10,7 +10,7 @@
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<modifier>abstract</modifier> <modifier>public</modifier> <type class="union"><type>MongoDB\Driver\CursorId</type><type>MongoDB\BSON\Int64</type></type><methodname>MongoDB\Driver\CursorInterface::getId</methodname>
<modifier>abstract</modifier> <modifier>public</modifier> <type>MongoDB\BSON\Int64</type><methodname>MongoDB\Driver\CursorInterface::getId</methodname>
<void />
</methodsynopsis>
<para>
Expand Down
63 changes: 56 additions & 7 deletions reference/mongodb/mongodb/driver/exception/bulkwriteexception.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 0df9823f6a218f95f8aa9f5c0460009cec9ecfd0 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<reference xml:id="class.mongodb-driver-exception-bulkwriteexception" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
Expand Down Expand Up @@ -35,24 +34,28 @@

<ooclass>
<modifier>extends</modifier>
<classname>MongoDB\Driver\Exception\WriteException</classname>
<classname>MongoDB\Driver\Exception\ServerException</classname>
</ooclass>

<oointerface>
<interfacename>MongoDB\Driver\Exception\Exception</interfacename>
</oointerface>
</classsynopsisinfo>
<!-- }}} -->
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
<fieldsynopsis>
<modifier>protected</modifier>
<type>MongoDB\Driver\WriteResult</type>
<varname linkend="mongodb-driver-exception-bulkwriteexception.props.writeresult">writeResult</varname>
</fieldsynopsis>
<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-writeexception.synopsis')/descendant::db:fieldsynopsis)" />
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-serverexception.synopsis')/descendant::db:fieldsynopsis)" /> -->
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-serverexception.synopsis')/descendant::db:fieldsynopsis)" />-->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-runtimeexception.synopsis')/descendant::db:fieldsynopsis)" />
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('runtimeexception.synopsis')/descendant::db:fieldsynopsis)" /> -->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('exception.synopsis')/descendant::db:fieldsynopsis)" />

<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-exception-writeexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-exception-serverexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> -->
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-exception-serverexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />-->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.mongodb-driver-exception-runtimeexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.runtimeexception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" /> -->
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('class.exception')/db:refentry/db:refsect1[@role='description']/descendant::db:methodsynopsis[not(@role='procedural')])" />
Expand All @@ -62,6 +65,52 @@

</section>

<!-- {{{ MongoDB\Driver\Exception\BulkWriteException properties -->
<section xml:id="mongodb-driver-exception-bulkwriteexception.props">
&reftitle.properties;
<variablelist>
<varlistentry xml:id="mongodb-driver-exception-bulkwriteexception.props.writeresult">
<term><varname>writeResult</varname></term>
<listitem>
<para>
Le <type>MongoDB\Driver\WriteResult</type> associé à l'opération d'écriture
échouée.
</para>
</listitem>
</varlistentry>
</variablelist>
</section>
<!-- }}} -->

<section role="changelog">
&reftitle.changelog;
<para>
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>PECL mongodb 2.0.0</entry>
<entry>
<para>
Cette classe étend désormais
<classname>MongoDB\Driver\Exception\ServerException</classname>
au lieu de
<classname>MongoDB\Driver\Exception\WriteException</classname>.
</para>
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</para>
</section>

</partintro>

</reference>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4083e8f9523a60390960c52a7ab810dc7b096d40 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<reference xml:id="class.mongodb-driver-exception-sslconnectionexception" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
Expand All @@ -13,7 +12,7 @@
<warning>
<simpara>
Cette classe d'exception est <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.5.0 de l'extension
et sera supprimée dans la version 2.0. Cette exception n'a jamais été lancée par l'extension.
et a été supprimée dans la version 2.0. Cette exception n'a jamais été lancée par l'extension.
Les applications devraient utiliser <classname>MongoDB\Driver\Exception\ConnectionException</classname>
à la place.
</simpara>
Expand Down
13 changes: 9 additions & 4 deletions reference/mongodb/mongodb/driver/exception/writeexception.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 4083e8f9523a60390960c52a7ab810dc7b096d40 Maintainer: yannick Status: ready -->
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
<!-- Reviewed: no -->

<reference xml:id="class.mongodb-driver-exception-writeexception" role="class" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude">
Expand All @@ -13,7 +12,7 @@
<warning>
<simpara>
Cette classe d'exception est <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
et sera supprimée dans la version 2.0.
et a été supprimée dans la version 2.0.
Cette exception n'a jamais été directement lancée par l'extension.
Les applications devraient utiliser <classname>MongoDB\Driver\Exception\BulkWriteException</classname>
à la place.
Expand Down Expand Up @@ -110,11 +109,17 @@
</row>
</thead>
<tbody>
<row>
<entry>PECL mongodb 1.20.0</entry>
<entry>
Cette classe a été dépréciée et sera supprimée dans la version 2.0.
</entry>
</row>
<row>
<entry>PECL mongodb 1.5.0</entry>
<entry>
<para>
Cette classe s'étend maintenant
Cette classe étend maintenant
<classname>MongoDB\Driver\Exception\ServerException</classname>
à la place de
<classname>MongoDB\Driver\Exception\RuntimeException</classname>.
Expand Down
Loading