## Class TPagedMapIterator

Description

Implements interfaces:

TPagedMapIterator class

TPagedMapIterator implements Iterator interface.

TPagedMapIterator is used by TPagedDataSource. It allows TPagedDataSource to return a new iterator for traversing the items in a TMap object.

- since: 3.0
- version: $Revision: $ $Date: $
- author: Qiang Xue <qiang.xue@gmail.com>

Located in /Collections/TPagedDataSource.php (line 360)

Method Summary
TPagedMapIterator __construct (TMap $map, mixed $startIndex, mixed $count)
mixed current ()
integer key ()
void next ()
void rewind ()
boolean valid ()
Methods
Constructor __construct (line 372)

Constructor.

- access: public

TPagedMapIterator __construct (TMap $map, mixed $startIndex, mixed $count)

- array $map: the data to be iterated through

current (line 411)

Returns the current array item.

This method is required by the interface Iterator.

- return: the current array item
- access: public

mixed current ()
key (line 401)

Returns the key of the current array item.

This method is required by the interface Iterator.

- return: the key of the current array item
- access: public

integer key ()
next (line 420)

Moves the internal pointer to the next array item.

This method is required by the interface Iterator.

- access: public

void next ()
rewind (line 388)

Rewinds internal array pointer.

This method is required by the interface Iterator.

- access: public

void rewind ()
valid (line 431)

Returns whether there is an item at current position.

This method is required by the interface Iterator.

- access: public

boolean valid ()

Documentation generated on Sun, 04 Jun 2006 19:00:00 -0400 by phpDocumentor 1.3.0RC4