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

Public Member Functions

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

Protected Attributes

 $_array = null
 
 $_count = null
 

Constructor & Destructor Documentation

__construct ( array  $array)

Constructor.

Parameters
array$arrayArray to paginate

Member Function Documentation

count ( )

Returns the total number of rows in the array.

Returns
integer
getItems (   $offset,
  $itemCountPerPage 
)

Returns an array of items for a page.

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

Implements Zend_Paginator_Adapter_Interface.

Member Data Documentation

$_array = null
protected
$_count = null
protected