[PCBC-69] Add Pagination to the new 1.1.0 line. Created: 17/May/12 Updated: 13/May/13 |
|
| Status: | Open |
| 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 | Assignee: | Trond Norbye |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
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) { var_dump($row); } } |
| Comments |
| 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. |