From e294c93ceeb1a0ddcaa16e7add88818c7d6d3eb0 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Fri, 18 Apr 2014 22:32:43 +0000 Subject: [PATCH] Add missing MongoClient constructor changelog entries Includes various other small grammar and language changes. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@333377 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongoclient/construct.xml | 37 +++++++++++++++-------- 1 file changed, 25 insertions(+), 12 deletions(-) diff --git a/reference/mongo/mongoclient/construct.xml b/reference/mongo/mongoclient/construct.xml index b70ff3242b..951654d79b 100644 --- a/reference/mongo/mongoclient/construct.xml +++ b/reference/mongo/mongoclient/construct.xml @@ -87,7 +87,7 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db - An array of options for the connection. Currently available options + An array of options for the connection. Currently available options include: @@ -306,12 +306,21 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db The following options are deprecated and should no longer be used: + + + "slaveOkay" + + + Deprecated. Please use the read + preference options. + + "timeout" - Deprecated alias for "connectTimeoutMS". + Deprecated alias for "connectTimeoutMS". @@ -319,7 +328,7 @@ mongodb://[username:password@]host1[:port1][,host2[:port2:],...]/db "wTimeout" - Deprecated alias for "wTimeoutMS". + Deprecated alias for "wTimeoutMS". @@ -599,8 +608,12 @@ $m = new MongoClient( 1.4.0 - Added the "wTimeoutMS" option has replacement - for "wTimeout". + Added "wTimeoutMS" option, which replaces + "wTimeout". + + + Emits E_DEPRECATED when + "slaveOkay" or "timeout" is used. @@ -608,7 +621,7 @@ $m = new MongoClient( 1.3.4 - Added the "connectTimeoutMS" and + Added "connectTimeoutMS" and "socketTimeoutMS" options. @@ -617,8 +630,8 @@ $m = new MongoClient( 1.3.0 - Added the "readPreference", - "readPreferenceTags", "w" and + Added "readPreference", + "readPreferenceTags", "w", and "wTimeout" options. @@ -627,11 +640,11 @@ $m = new MongoClient( 1.2.0 - Added the "username" and - "password" options. + Added "username" and "password" + options. - Removed the "persist" option, as all connections are + Removed "persist" option, as all connections are now persistent. It can still be used, but it doesn't affect anything. @@ -661,7 +674,7 @@ $m = new MongoClient( 1.0.9 - Added the "replicaSet" option. + Added "replicaSet" option. 1.0.2