page, pagelength

by chris on 07 Mar 10 at 20:23 in updates
Have added 2 parameters to ob.list

page and pagelength (the latter defaults to 20)


This allows queries that return subsets of their total results. The query is re-run each time and maps to limit start, length in MySQL.

Nb. These parameters override the limit parameter.

re:page, pagelength
by ian on 08 Mar 10 at 09:21
good - a less industrial approach than the limit parameter

re:page, pagelength
by chris on 08 Mar 10 at 09:52
update: have renamed page to pager --- page is already used extensively elsewhere.


to reply to this, please login or register