Class Iterator

Summary

Fully Qualified Name: Zend\Paginator\Adapter\Iterator
Implements: AdapterInterface

Description

Methods

Name Description Defined By
__construct() Constructor. Iterator
count() Returns the total number of rows in the collection. Iterator
getItems() Returns an iterator of items for a page, or an empty array. Iterator

Method Details

__construct()

Constructor.

Parameter Name Type Description
$iterator \Iterator Iterator

Returns:

count()

Returns the total number of rows in the collection.

Returns: int

getItems()

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

Parameter Name Type Description
$offset int Page
$itemCountPerPage int Number

Returns: array|\SerializableLimitIterator

Top