Class TDummyDataSourceIterator

Description

Implements interfaces:

  • Iterator (internal interface)

TDummyDataSourceIterator class

TDummyDataSourceIterator implements Iterator interface.

TDummyDataSourceIterator is used by TDummyDataSource. It allows TDummyDataSource to return a new iterator for traversing its dummy items.

  • author: Qiang Xue <qiang.xue@gmail.com>
  • version: $Id: TDummyDataSource.php 2996 2011-06-20 15:24:57Z ctrlaltca@gmail.com $
  • since: 3.0

Located in /Collections/TDummyDataSource.php (line 83)


	
			
Method Summary
TDummyDataSourceIterator __construct (integer $count)
mixed current ()
integer key ()
void next ()
void rewind ()
boolean valid ()
Methods
Constructor __construct (line 92)

Constructor.

  • access: public
TDummyDataSourceIterator __construct (integer $count)
  • integer $count: number of (virtual) items in the data source.
current (line 122)

Returns the current array item.

This method is required by the interface Iterator.

  • return: the current array item
  • access: public
mixed current ()

Implementation of:
Iterator::current
key (line 112)

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 ()

Implementation of:
Iterator::key
next (line 131)

Moves the internal pointer to the next array item.

This method is required by the interface Iterator.

  • access: public
void next ()

Implementation of:
Iterator::next
rewind (line 102)

Rewinds internal array pointer.

This method is required by the interface Iterator.

  • access: public
void rewind ()

Implementation of:
Iterator::rewind
valid (line 141)

Returns whether there is an item at current position.

This method is required by the interface Iterator.

  • access: public
boolean valid ()

Implementation of:
Iterator::valid

Documentation generated on Mon, 25 Jun 2012 14:38:08 +0200 by phpDocumentor 1.4.3