PHP Class Prado\Collections\TPagedListIterator

TPagedListIterator implements \Iterator interface. TPagedListIterator is used by {@link TPagedDataSource}. It allows TPagedDataSource to return a new iterator for traversing the items in a {@link TList} object.
Since: 3.0
Author: Qiang Xue ([email protected])
Inheritance: implements Iterator
Exibir arquivo Open project: pradosoft/prado

Public Methods

Method Description
__construct ( TList $list, $startIndex, $count ) Constructor.
current ( ) : mixed Returns the current array item.
key ( ) : integer Returns the key of the current array item.
next ( ) Moves the internal pointer to the next array item.
rewind ( ) Rewinds internal array pointer.
valid ( ) : boolean Returns whether there is an item at current position.

Method Details

__construct() public method

Constructor.
public __construct ( TList $list, $startIndex, $count )
$list TList

current() public method

This method is required by the interface Iterator.
public current ( ) : mixed
return mixed the current array item

key() public method

This method is required by the interface Iterator.
public key ( ) : integer
return integer the key of the current array item

next() public method

This method is required by the interface Iterator.
public next ( )

rewind() public method

This method is required by the interface Iterator.
public rewind ( )

valid() public method

This method is required by the interface Iterator.
public valid ( ) : boolean
return boolean