[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/mongo/mongocommandcursor/_timeout.xml?=
From: Jeremy_Mikola <jmikola () php ! net>
Date: 2014-12-28 21:57:51
Message-ID: svn-jmikola-1419803871-335443-349744409 () svn ! php ! net
[Download RAW message or body]
jmikola Sun, 28 Dec 2014 21:57:51 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=335443
Log:
Revise formatting and example for MongoCommandCursor::timeout()
Changed paths:
U phpdoc/en/trunk/reference/mongo/mongocommandcursor/timeout.xml
Modified: phpdoc/en/trunk/reference/mongo/mongocommandcursor/timeout.xml
===================================================================
--- phpdoc/en/trunk/reference/mongo/mongocommandcursor/timeout.xml 2014-12-28 21:56:56 UTC (rev 335442)
+++ phpdoc/en/trunk/reference/mongo/mongocommandcursor/timeout.xml 2014-12-28 21:57:51 UTC (rev 335443)
@@ -34,12 +34,12 @@
<varname>30000</varname> milliseconds (30 seconds).
</para>
</listitem>
- </varlistentry>
+ </varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
- &reftitle.returnvalues;
+ &reftitle.returnvalues;
<para>
This cursor.
</para>
@@ -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 ) {
+ …
}
?>
--
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