All output from methods starting with "get" is paged by default, in batches of 30 records. This is to prevent any one user from issuing a query that disrupts service for all. You can use the following methods to work with paged data:
Method Name | Function |
---|---|
getTotalPages() | Returns the total number of pages for the last result |
getTotalRecords() | Returns the total number of records for the last result (not just those on the current page) |
By default, when you request data only the first page of results is returned. To return other pages, you must specify the "page" filter value, which does not accept any suffixes on its name. For example:
$result = $tr->getUsers(["page"=>3]);
If you request a page outside the range 1 through getTotalPages(), an empty result set will be returned.