From 9bd7ff84794cde343127e864da941458fb305069 Mon Sep 17 00:00:00 2001 From: Kristina Chodorow Date: Tue, 11 May 2010 19:59:21 +0000 Subject: [PATCH] added static vars git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299265 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocursor.xml | 35 +++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/reference/mongo/mongocursor.xml b/reference/mongo/mongocursor.xml index 498efaa90f..2080ad873d 100644 --- a/reference/mongo/mongocursor.xml +++ b/reference/mongo/mongocursor.xml @@ -77,6 +77,12 @@ $cursor->skip(4); slaveOkay &false; + + static + integer + timeout + 20000 + &Methods; @@ -85,6 +91,35 @@ $cursor->skip(4); +
+ Static Variables + + + + MongoCursor::slaveOkay + + + If the query should have the "slaveOkay" flag set, which allows reads on + the slave (slaves are, by default, just for backup and unreadable). Can + be overridden with MongoCursor::slaveOkay. + + + + + MongoCursor::timeout + + + Set timeout in milliseconds for all database responses. To wait forever, + use -1. Can be overridden with MongoCursor::timeout. + This does not cause the MongoDB server to cancel the operation, it just + causes the driver to stop waiting for a response and throw a + MongoCursorTimeoutException. + + + + +
+
&reftitle.seealso;