\CGBetterUploadsFilterResultset

An abstract class to allow iterating, counting, and paginationg the output from a filter.

Summary

Methods
Properties
Constants
pageList()
$pagecount
$page
$total
$filter
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$pagecount

$pagecount : integer

The total number of pages

Type

integer

$page

$page : integer

The current page number

Type

integer

$total

$total : integer

The total number of records matched by the filter.

Type

integer

$filter

$filter : \CGBetterUploads\Filter

The filter used to create the matches.

Type

\CGBetterUploads\Filter

Methods

pageList()

pageList(integer  $surround = 5) : array<mixed,integer>

Get a list of pages matching this resultset, to be used in generating a pagination interface.

Parameters

integer $surround

The number of entries to surround the current page with.

Returns

array<mixed,integer> —

An array of page numbers.