[PCBC-69] Add Pagination to the new 1.1.0 line. Created: 17/May/12  Updated: 13/Mar/14  Resolved: 13/Mar/14

Status: Resolved
Project: Couchbase PHP client library
Component/s: None
Affects Version/s: 1.1.0-dp1
Fix Version/s: None
Security Level: Public

Type: New Feature Priority: Major
Reporter: Jan Lehnardt (Inactive) Assignee: Brett Lawson
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

We should bake in pagination into ext/couchbase

$result = $cb->view("ddoc", "viewname");
$pager = $result->getPager($rowsPerPage = 10);
foreach($pager->nextPage() AS $page) {
  foreach($page->rows AS $row) {

Comment by Matt Ingenthron [ 07/Nov/12 ]
This should be implemented along with "logical" include_docs support.

The idea behind logical include_docs is that when fetching a non-reduced view, if the user specifies include_docs, there is a way to access the document when iterating over the results.

I'm relatively sure this may require further discussion. Grab me when you're ready to have a look at this issue.
Comment by Brett Lawson [ 27/Sep/13 ]
Further Discussion!
Generated at Thu Oct 23 16:48:53 CDT 2014 using JIRA 5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9.