mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
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:
parent
11a5a133fd
commit
666f9c872a
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue