Paginator/Adapter/Iterator.php
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Paginator
- version
- $Id: Iterator.php 20096 2010-01-06 02:05:09Z bkarwin $
- Classes
- Zend_Paginator_Adapter_Iterator
Description
Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled
with this package in the file LICENSE.txt.
It is also available through the world-wide-web at this URL:
http://framework.zend.com/license/new-bsd
If you did not receive a copy of the license and are unable to
obtain it through the world-wide-web, please send an email
to license@zend.com so we can send you a copy immediately.
Zend_Paginator_Adapter_Iterator
- Implements
- Zend_Paginator_Adapter_Interface
- category
- Zend
- copyright
- Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
- license
- http://framework.zend.com/license/new-bsd New BSD License
- package
- Zend_Paginator
- Properties
- $_iterator
- $_count
- Methods
- __construct
- getItems
- count
Description
Properties
integer $_count = 'null'
Item count
Details
- $_count
- integer
- visibility
- protected
- default
- null
- final
- false
- static
- false
Iterator $_iterator = 'null'
Iterator which implements Countable
Details
- $_iterator
- Iterator
- visibility
- protected
- default
- null
- final
- false
- static
- false
Methods
__construct(
Iterator $iterator
)
:
Constructor.
Arguments
- $iterator
- Iterator
Iterator to paginate
Details
- visibility
- public
- final
- false
- static
- false
- throws
count(
)
:
integer
Returns the total number of rows in the collection.
Details
- visibility
- public
- final
- false
- static
- false
getItems(
integer $offset, integer $itemCountPerPage
)
:
LimitIterator|array
Returns an iterator of items for a page, or an empty array.
Arguments
- $offset
- integer
Page offset
- $itemCountPerPage
- integer
Number of items per page
Output
- LimitIterator|array
Details
- visibility
- public
- final
- false
- static
- false