svn: /phpdoc/en/trunk/reference/mongo/mongocursor/ batchsize.xml

From: Date: Mon, 22 Nov 2010 15:31:15 +0000
Subject: svn: /phpdoc/en/trunk/reference/mongo/mongocursor/ batchsize.xml
Groups: php.doc.cvs 
Request: Send a blank email to doc-cvs+get-7457@lists.php.net to get a copy of this message
kristina Mon, 22 Nov 2010 15:31:15 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=305656 Log: fixed batchSize doc Changed paths: U phpdoc/en/trunk/reference/mongo/mongocursor/batchsize.xml Modified: phpdoc/en/trunk/reference/mongo/mongocursor/batchsize.xml =================================================================== --- phpdoc/en/trunk/reference/mongo/mongocursor/batchsize.xml 2010-11-22 15:00:51 UTC (rev 305655) +++ phpdoc/en/trunk/reference/mongo/mongocursor/batchsize.xml 2010-11-22 15:31:15 UTC (rev 305656) @@ -3,7 +3,7 @@ <!-- $Revision$ --> <refentry xml:id="mongocursor.batchsize" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> - <refname>MongoCursor::limit</refname> + <refname>MongoCursor::batchSize</refname> <refpurpose>Sets the number of results returned per result set</refpurpose> </refnamediv> @@ -30,19 +30,19 @@ <?php // one batch, at most 20 items -$cursor->limit(-20)->batch(10); +$cursor->limit(-20)->batchSize(10); // one batch, at most 10 items -$cursor->limit(20)->batch(-10); +$cursor->limit(20)->batchSize(-10); // first batch: at most 10 items $cursor->limit(10); // first batch: at most 10 items -$cursor->limit(10)->batch(20); +$cursor->limit(10)->batchSize(20); // first batch: at most 10 items -$cursor->limit(20)->batch(10); +$cursor->limit(20)->batchSize(10); $cursor->limit(30)->batchSize(7)

« previous php.doc.cvs (#7457) next »