Methods

Constructor.

__construct(array $array) 

Parameters

$array

array

ArrayAdapter to paginate

Returns the total number of rows in the array.

count() : int

Returns

int

Returns an array of items for a page.

getItems(int $offset, int $itemCountPerPage) : array

Parameters

$offset

int

Page offset

$itemCountPerPage

int

Number of items per page

Returns

array

 Properties

 

ArrayAdapter

$array : array

 

Item count

$count : int