fixed batchSize doc

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@305656 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Kristina Chodorow 2010-11-22 15:31:15 +00:00
parent 11a5a133fd
commit 666f9c872a

View file

@ -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)