Zend Framework  1.12
Public Member Functions | Protected Attributes | List of all members
Zend_Paginator_Adapter_Iterator Class Reference

Public Member Functions

 __construct (Iterator $iterator)
 Constructor.
 
 getItems ($offset, $itemCountPerPage)
 Returns an iterator of items for a page, or an empty array.
 
 count ()
 Returns the total number of rows in the collection.
 

Protected Attributes

 $_iterator = null
 
 $_count = null
 

Constructor & Destructor Documentation

__construct ( Iterator  $iterator)

Constructor.

Parameters
Iterator$iteratorIterator to paginate
Exceptions
Zend_Paginator_Exception
See Also
Zend_Paginator_Exception

Member Function Documentation

count ( )

Returns the total number of rows in the collection.

Returns
integer
getItems (   $offset,
  $itemCountPerPage 
)

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

Parameters
integer$offsetPage offset
integer$itemCountPerPageNumber of items per page
Returns
LimitIterator|array

Implements Zend_Paginator_Adapter_Interface.

Member Data Documentation

$_count = null
protected
$_iterator = null
protected