Modified: phpdoc/en/trunk/language-snippets.ent
===================================================================
--- phpdoc/en/trunk/language-snippets.ent 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/language-snippets.ent 2013-01-28 23:36:42 UTC (rev 329318)
@@ -1709,8 +1709,9 @@
read_preferenceThe read preference mode: MongoClient::RP_PRIMARY, MongoClient::RP_PRIMARY_PREFERRED, MongoClient::RP_SECONDARY, MongoClient::RP_SECONDARY_PREFERRED, or MongoClient::RP_NEAREST.tagsAn array of zero or more tag sets, where each tag set is itself an array of criteria used to match tags on replica set members.'>
-Returns &true; on success, or &false; otherwise.'>
-This function returns an array describing the read preference. The array contains the values type for the string read preference mode (corresponding to the MongoClient constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tagsets will not be present in the array.'>
+Returns &true; on success, or &false; otherwise.'>
+Emits E_WARNING if either parameter is invalid, or if one or more tag sets are provided with the MongoClient::RP_PRIMARY read preference mode.'>
+This function returns an array describing the read preference. The array contains the values type for the string read preference mode (corresponding to the MongoClient constants), and tagsets containing a list of all tag set criteria. If no tag sets were specified, tagsets will not be present in the array.'>
"w"See WriteConcerns. The default value for MongoClient is 1.'>
"fsync"Boolean, defaults to &false;. Forces the insert to be synced to disk before returning success. If &true;, an acknowledged insert is implied and will override setting w to 0.'>
"timeout"Integer, defaults to MongoCursor::$timeout. If "safe" is set, this sets how long (in milliseconds) for the client to wait for a database response. If the database does not respond within the timeout period, a MongoCursorTimeoutException will be thrown.'>
Modified: phpdoc/en/trunk/reference/mongo/mongoclient/getreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongoclient/getreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongoclient/getreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -22,7 +22,7 @@
&reftitle.returnvalues;
- &mongo.getreadpreference.return;
+ &mongo.getreadpreference.returnvalues;
Modified: phpdoc/en/trunk/reference/mongo/mongoclient/setreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongoclient/setreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongoclient/setreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -23,9 +23,14 @@
&reftitle.returnvalues;
- &mongo.setreadpreference.return;
+ &mongo.setreadpreference.returnvalues;
+
+ &reftitle.errors;
+ &mongo.setreadpreference.errors;
+
+
&reftitle.examples;
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/getreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/getreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/getreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -22,14 +22,7 @@
&reftitle.returnvalues;
-
- This function returns an array describing the read preference. The array
- contains the values type for the numeric read preference
- mode, type_string for the name of the read preference
- mode, and tagsets containing a list of all tag set
- criteria. If no tag sets were specified, tagsets will not
- be present in the array.
-
+ &mongo.getreadpreference.returnvalues;
Modified: phpdoc/en/trunk/reference/mongo/mongocollection/setreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocollection/setreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongocollection/setreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -23,9 +23,14 @@
&reftitle.returnvalues;
- &mongo.setreadpreference.return;
+ &mongo.setreadpreference.returnvalues;
+
+ &reftitle.errors;
+ &mongo.setreadpreference.errors;
+
+
&reftitle.examples;
Modified: phpdoc/en/trunk/reference/mongo/mongocursor/getreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocursor/getreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongocursor/getreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -22,14 +22,7 @@
&reftitle.returnvalues;
-
- This function returns an array describing the read preference. The array
- contains the values type for the numeric read preference
- mode, type_string for the name of the read preference
- mode, and tagsets containing a list of all tag set
- criteria. If no tag sets were specified, tagsets will not
- be present in the array.
-
+ &mongo.getreadpreference.returnvalues;
Modified: phpdoc/en/trunk/reference/mongo/mongocursor/setreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocursor/setreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongocursor/setreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -23,9 +23,14 @@
&reftitle.returnvalues;
- &mongo.setreadpreference.return;
+ &mongo.setreadpreference.returnvalues;
+
+ &reftitle.errors;
+ &mongo.setreadpreference.errors;
+
+
&reftitle.examples;
Modified: phpdoc/en/trunk/reference/mongo/mongodb/getreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongodb/getreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongodb/getreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -22,14 +22,7 @@
&reftitle.returnvalues;
-
- This function returns an array describing the read preference. The array
- contains the values type for the numeric read preference
- mode, type_string for the name of the read preference
- mode, and tagsets containing a list of all tag set
- criteria. If no tag sets were specified, tagsets will not
- be present in the array.
-
+ &mongo.getreadpreference.returnvalues;
Modified: phpdoc/en/trunk/reference/mongo/mongodb/setreadpreference.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongodb/setreadpreference.xml 2013-01-28 21:54:52 UTC (rev 329317)
+++ phpdoc/en/trunk/reference/mongo/mongodb/setreadpreference.xml 2013-01-28 23:36:42 UTC (rev 329318)
@@ -23,9 +23,14 @@
&reftitle.returnvalues;
- &mongo.setreadpreference.return;
+ &mongo.setreadpreference.returnvalues;
+
+ &reftitle.errors;
+ &mongo.setreadpreference.errors;
+
+
&reftitle.examples;