[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] =?utf-8?q?svn:_/phpdoc/en/trunk/reference/mongodb/mongodb/driver/_manager/construct.xml_re
From: Jeremy_Mikola <jmikola () php ! net>
Date: 2017-07-31 19:08:13
Message-ID: svn-jmikola-1501528093-342742-2080060920 () svn ! php ! net
[Download RAW message or body]
jmikola Mon, 31 Jul 2017 19:08:13 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=342742
Log:
ReadPreference constructor accepts string for mode argument
https://jira.mongodb.org/browse/PHPC-904
Changed paths:
U phpdoc/en/trunk/reference/mongodb/mongodb/driver/manager/construct.xml
U phpdoc/en/trunk/reference/mongodb/mongodb/driver/readpreference/construct.xml
Modified: phpdoc/en/trunk/reference/mongodb/mongodb/driver/manager/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/mongodb/mongodb/driver/manager/construct.xml 2017-07-31 \
19:02:13 UTC (rev 342741)
+++ phpdoc/en/trunk/reference/mongodb/mongodb/driver/manager/construct.xml 2017-07-31 \
19:08:13 UTC (rev 342742) @@ -280,14 +280,6 @@
parameter. Defaults to <literal>"primary"</literal>. For
details, see <classname>MongoDB\Driver\ReadPreference</classname>.
</para>
- <note>
- <simpara>
- This accepts a string value (e.g. <literal>"primary"</literal>,
- <literal>"secondaryPreferred"</literal>), unlike
- <function>MongoDB\Driver\ReadPreference::__construct</function>,
- which takes an integer.
- </simpara>
- </note>
</entry>
</row>
<row>
Modified: phpdoc/en/trunk/reference/mongodb/mongodb/driver/readpreference/construct.xml
===================================================================
--- phpdoc/en/trunk/reference/mongodb/mongodb/driver/readpreference/construct.xml 2017-07-31 \
19:02:13 UTC (rev 342741)
+++ phpdoc/en/trunk/reference/mongodb/mongodb/driver/readpreference/construct.xml 2017-07-31 \
19:08:13 UTC (rev 342742) @@ -11,7 +11,7 @@
&reftitle.description;
<methodsynopsis>
<modifier>final</modifier> <modifier>public</modifier> \
<methodname>MongoDB\Driver\ReadPreference::__construct</methodname>
- <methodparam><type>int</type><parameter>mode</parameter></methodparam>
+ <methodparam><type>string|int</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type>array</type><parameter>tagSets</parameter><initializer>&null;</initializer></methodparam>
<methodparam choice="opt"><type>array</type><parameter>options</parameter><initializer>[]</initializer></methodparam>
</methodsynopsis>
@@ -38,7 +38,7 @@
</thead>
<tbody>
<row>
- <entry><constant>MongoDB\Driver\ReadPreference::RP_PRIMARY</constant></entry>
+ <entry><constant>MongoDB\Driver\ReadPreference::RP_PRIMARY</constant> or \
<literal>"primary"</literal></entry> <entry>
<para>
All operations read from the current replica set primary. This is
@@ -47,7 +47,7 @@
</entry>
</row>
<row>
- <entry><constant>MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED</constant></entry>
+ <entry><constant>MongoDB\Driver\ReadPreference::RP_PRIMARY_PREFERRED</constant> \
or <literal>"primaryPreferred"</literal></entry> <entry>
<para>
In most situations, operations read from the primary but if it is
@@ -56,7 +56,7 @@
</entry>
</row>
<row>
- <entry><constant>MongoDB\Driver\ReadPreference::RP_SECONDARY</constant></entry>
+ <entry><constant>MongoDB\Driver\ReadPreference::RP_SECONDARY</constant> \
or <literal>"secondary"</literal></entry> <entry>
<para>
All operations read from the secondary members of the replica set.
@@ -64,7 +64,7 @@
</entry>
</row>
<row>
- <entry><constant>MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED</constant></entry>
+ <entry><constant>MongoDB\Driver\ReadPreference::RP_SECONDARY_PREFERRED</constant> \
or <literal>"secondaryPreferred"</literal></entry> <entry>
<para>
In most situations, operations read from secondary members but if no
@@ -73,7 +73,7 @@
</entry>
</row>
<row>
- <entry><constant>MongoDB\Driver\ReadPreference::RP_NEAREST</constant></entry>
+ <entry><constant>MongoDB\Driver\ReadPreference::RP_NEAREST</constant> or \
<literal>"nearest"</literal></entry> <entry>
<para>
Operations read from member of the replica set with the least
@@ -188,6 +188,16 @@
</thead>
<tbody>
<row>
+ <entry>1.3.0</entry>
+ <entry>
+ <para>
+ The <parameter>mode</parameter> argument now accepts a string value,
+ which is consistent with the <literal>"readPreference"</literal> URI
+ option for <function>MongoDB\Driver\Manager::__construct</function>.
+ </para>
+ </entry>
+ </row>
+ <row>
<entry>1.2.0</entry>
<entry>
<para>
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic