From eecf0808f030107c438d6df5ea49621a9445eb86 Mon Sep 17 00:00:00 2001 From: Jeremy Mikola Date: Sun, 28 Dec 2014 21:57:51 +0000 Subject: [PATCH] Revise formatting and example for MongoCommandCursor::timeout() git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@335443 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/mongo/mongocommandcursor/timeout.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/reference/mongo/mongocommandcursor/timeout.xml b/reference/mongo/mongocommandcursor/timeout.xml index 3e883a2cbd..63f72332dc 100644 --- a/reference/mongo/mongocommandcursor/timeout.xml +++ b/reference/mongo/mongocommandcursor/timeout.xml @@ -34,12 +34,12 @@ 30000 milliseconds (30 seconds). - + - &reftitle.returnvalues; + &reftitle.returnvalues; This cursor. @@ -69,14 +69,14 @@ $m = new MongoClient; $col = $m->database->collection; - -$pipeline = []; - + +$pipeline = [ … ]; + $cursor = $col->aggregateCursor( $pipeline ); $cursor->timeout( 60000 ); // for 60 seconds -foreach ( $cursor as $result ) -{ +foreach ( $cursor as $result ) { + … } ?>