Skip to content

Commit bbded4c

Browse files
authored
Sync mongodb driver (#2179)
1 parent a2cceb0 commit bbded4c

File tree

9 files changed

+158
-224
lines changed

9 files changed

+158
-224
lines changed

reference/mongodb/mongodb/driver/cursor/getid.xml

+12-17
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: cf2b279980fc54b7f2602a0687652c170a906930 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
33
<!-- Reviewed: no -->
44

55
<refentry xml:id="mongodb-driver-cursor.getid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
@@ -11,21 +11,12 @@
1111
<refsect1 role="description">
1212
&reftitle.description;
1313
<methodsynopsis>
14-
<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>
15-
<methodparam choice="opt"><type>bool</type><parameter>asInt64</parameter><initializer>&false;</initializer></methodparam>
14+
<modifier>final</modifier> <modifier>public</modifier> <type>MongoDB\BSON\Int64</type><methodname>MongoDB\Driver\Cursor::getId</methodname>
15+
<void/>
1616
</methodsynopsis>
1717
<para>
1818
Renvoie l'ID de ce curseur, qui identifie de manière unique le curseur sur le serveur.
1919
</para>
20-
<warning>
21-
<para>
22-
Retourner un objet <classname>MongoDB\Driver\CursorId</classname> depuis
23-
cette méthode est <emphasis>DÉPRÉCIÉ</emphasis> depuis la version 1.20.0 de
24-
l'extension. Dans la version 2.0, l'argument <parameter>asInt64</parameter>
25-
sera supprimé et cette méthode retournera toujours un objet
26-
<classname>MongoDB\BSON\Int64</classname>.
27-
</para>
28-
</warning>
2920
</refsect1>
3021

3122
<refsect1 role="parameters">
@@ -36,10 +27,8 @@
3627
<refsect1 role="returnvalues">
3728
&reftitle.returnvalues;
3829
<para>
39-
Renvoie l'ID de ce curseur. Si <parameter>asInt64</parameter> est &true;, l'ID
40-
sera retourné sous la forme d'un objet <classname>MongoDB\BSON\Int64</classname> ;
41-
sinon, il sera retourné sous la forme d'un objet
42-
<classname>MongoDB\Driver\CursorId</classname> et un avertissement de dépréciation sera émis.
30+
Renvoie l'ID de ce curseur. L'ID sera retourné sous la forme d'un objet
31+
<classname>MongoDB\BSON\Int64</classname>.
4332
</para>
4433
</refsect1>
4534

@@ -62,6 +51,13 @@
6251
</row>
6352
</thead>
6453
<tbody>
54+
<row>
55+
<entry>PECL mongodb 2.0.0</entry>
56+
<entry>
57+
Le type de retour a été changé de <classname>MongoDB\BSON\Int64</classname>
58+
Le paramètre <parameter>asInt64</parameter> a été supprimé.
59+
</entry>
60+
</row>
6561
<row>
6662
<entry>PECL mongodb 1.20.0</entry>
6763
<entry>
@@ -121,7 +117,6 @@ object(MongoDB\BSON\Int64)#5 (1) {
121117
<refsect1 role="seealso">
122118
&reftitle.seealso;
123119
<simplelist>
124-
<member><classname>MongoDB\Driver\CursorId</classname></member>
125120
<member><classname>MongoDB\BSON\Int64</classname></member>
126121
</simplelist>
127122
</refsect1>

reference/mongodb/mongodb/driver/cursorinterface/getid.xml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- EN-Revision: 73789d960f338c138390304c251451851485e7b7 Maintainer: Fan2Shrek Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: Fan2Shrek Status: ready -->
33
<!-- Reviewed: yes -->
44
<refentry xml:id="mongodb-driver-cursorinterface.getid" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
55
<refnamediv>
@@ -10,7 +10,7 @@
1010
<refsect1 role="description">
1111
&reftitle.description;
1212
<methodsynopsis>
13-
<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>
13+
<modifier>abstract</modifier> <modifier>public</modifier> <type>MongoDB\BSON\Int64</type><methodname>MongoDB\Driver\CursorInterface::getId</methodname>
1414
<void />
1515
</methodsynopsis>
1616
<para>

reference/mongodb/mongodb/driver/exception/bulkwriteexception.xml

+56-7
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 0df9823f6a218f95f8aa9f5c0460009cec9ecfd0 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<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">
@@ -35,24 +34,28 @@
3534

3635
<ooclass>
3736
<modifier>extends</modifier>
38-
<classname>MongoDB\Driver\Exception\WriteException</classname>
37+
<classname>MongoDB\Driver\Exception\ServerException</classname>
3938
</ooclass>
4039

4140
<oointerface>
4241
<interfacename>MongoDB\Driver\Exception\Exception</interfacename>
4342
</oointerface>
4443
</classsynopsisinfo>
4544
<!-- }}} -->
45+
<classsynopsisinfo role="comment">&Properties;</classsynopsisinfo>
46+
<fieldsynopsis>
47+
<modifier>protected</modifier>
48+
<type>MongoDB\Driver\WriteResult</type>
49+
<varname linkend="mongodb-driver-exception-bulkwriteexception.props.writeresult">writeResult</varname>
50+
</fieldsynopsis>
4651
<classsynopsisinfo role="comment">&InheritedProperties;</classsynopsisinfo>
47-
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-writeexception.synopsis')/descendant::db:fieldsynopsis)" />
48-
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-serverexception.synopsis')/descendant::db:fieldsynopsis)" /> -->
52+
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-serverexception.synopsis')/descendant::db:fieldsynopsis)" />-->
4953
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('mongodb-driver-exception-runtimeexception.synopsis')/descendant::db:fieldsynopsis)" />
5054
<!-- <xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('runtimeexception.synopsis')/descendant::db:fieldsynopsis)" /> -->
5155
<xi:include xpointer="xmlns(db=http://docbook.org/ns/docbook) xpointer(id('exception.synopsis')/descendant::db:fieldsynopsis)" />
5256

5357
<classsynopsisinfo role="comment">&InheritedMethods;</classsynopsisinfo>
54-
<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')])" />
55-
<!-- <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')])" /> -->
58+
<!-- <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')])" />-->
5659
<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')])" />
5760
<!-- <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')])" /> -->
5861
<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')])" />
@@ -62,6 +65,52 @@
6265

6366
</section>
6467

68+
<!-- {{{ MongoDB\Driver\Exception\BulkWriteException properties -->
69+
<section xml:id="mongodb-driver-exception-bulkwriteexception.props">
70+
&reftitle.properties;
71+
<variablelist>
72+
<varlistentry xml:id="mongodb-driver-exception-bulkwriteexception.props.writeresult">
73+
<term><varname>writeResult</varname></term>
74+
<listitem>
75+
<para>
76+
Le <type>MongoDB\Driver\WriteResult</type> associé à l'opération d'écriture
77+
échouée.
78+
</para>
79+
</listitem>
80+
</varlistentry>
81+
</variablelist>
82+
</section>
83+
<!-- }}} -->
84+
85+
<section role="changelog">
86+
&reftitle.changelog;
87+
<para>
88+
<informaltable>
89+
<tgroup cols="2">
90+
<thead>
91+
<row>
92+
<entry>&Version;</entry>
93+
<entry>&Description;</entry>
94+
</row>
95+
</thead>
96+
<tbody>
97+
<row>
98+
<entry>PECL mongodb 2.0.0</entry>
99+
<entry>
100+
<para>
101+
Cette classe étend désormais
102+
<classname>MongoDB\Driver\Exception\ServerException</classname>
103+
au lieu de
104+
<classname>MongoDB\Driver\Exception\WriteException</classname>.
105+
</para>
106+
</entry>
107+
</row>
108+
</tbody>
109+
</tgroup>
110+
</informaltable>
111+
</para>
112+
</section>
113+
65114
</partintro>
66115

67116
</reference>

reference/mongodb/mongodb/driver/exception/sslconnectionexception.xml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 4083e8f9523a60390960c52a7ab810dc7b096d40 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<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">
@@ -13,7 +12,7 @@
1312
<warning>
1413
<simpara>
1514
Cette classe d'exception est <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.5.0 de l'extension
16-
et sera supprimée dans la version 2.0. Cette exception n'a jamais été lancée par l'extension.
15+
et a été supprimée dans la version 2.0. Cette exception n'a jamais été lancée par l'extension.
1716
Les applications devraient utiliser <classname>MongoDB\Driver\Exception\ConnectionException</classname>
1817
à la place.
1918
</simpara>

reference/mongodb/mongodb/driver/exception/writeexception.xml

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- $Revision$ -->
3-
<!-- EN-Revision: 4083e8f9523a60390960c52a7ab810dc7b096d40 Maintainer: yannick Status: ready -->
2+
<!-- EN-Revision: 4639881688d3faaf0073ad71fe0a4b730aea15a0 Maintainer: yannick Status: ready -->
43
<!-- Reviewed: no -->
54

65
<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">
@@ -13,7 +12,7 @@
1312
<warning>
1413
<simpara>
1514
Cette classe d'exception est <emphasis>DÉPRÉCIÉE</emphasis> depuis la version 1.20.0 de l'extension
16-
et sera supprimée dans la version 2.0.
15+
et a été supprimée dans la version 2.0.
1716
Cette exception n'a jamais été directement lancée par l'extension.
1817
Les applications devraient utiliser <classname>MongoDB\Driver\Exception\BulkWriteException</classname>
1918
à la place.
@@ -110,11 +109,17 @@
110109
</row>
111110
</thead>
112111
<tbody>
112+
<row>
113+
<entry>PECL mongodb 1.20.0</entry>
114+
<entry>
115+
Cette classe a été dépréciée et sera supprimée dans la version 2.0.
116+
</entry>
117+
</row>
113118
<row>
114119
<entry>PECL mongodb 1.5.0</entry>
115120
<entry>
116121
<para>
117-
Cette classe s'étend maintenant
122+
Cette classe étend maintenant
118123
<classname>MongoDB\Driver\Exception\ServerException</classname>
119124
à la place de
120125
<classname>MongoDB\Driver\Exception\RuntimeException</classname>.

0 commit comments

Comments
 (0)