Pager::getOffsetByPageId() – Returns offsets for given pageID.


require_once 'Pager.php';

array Pager::getOffsetByPageId ( integer $pageid = null )


Returns offsets for given pageID. Eg, if you pass it pageID one and your perPage limit is 10 it will return (1, 10). pageID=2 would give you (11, 20).

if the method is called without parameter, pageID is set to currentPage


  • integer $pageid - PageID to get offsets for

Return value

return array with first and last offsets



Returns next page number. (Previous) Returns an array of current pages data (Next)
Last updated: Sat, 16 Feb 2019 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.