33. Class

33.1. Zend\Paginator\Adapter\Iterator

33.1.1. Methods

33.1.1.1. __construct

__construct()

Constructor.

Parameters:Iterator – Iterator to paginate
Throws ZendPaginatorAdapterExceptionInvalidArgumentException:
 

33.1.1.2. getItems

getItems()

Returns an iterator of items for a page, or an empty array.

Parameters:
  • integer – Page offset
  • integer – Number of items per page
Return type:

array|ZendPaginatorSerializableLimitIterator

33.1.1.3. count

count()

Returns the total number of rows in the collection.

Return type:integer

Project Versions

Table Of Contents

Previous topic

32. Class

Next topic

34. Class

This Page