abstract class Doctrine_Collection_Iterator implements Iterator (View source)

Doctrine_Collection_Iterator iterates through Doctrine_Collection

Properties

protected Doctrine_Collection $collection
protected array $keys
protected mixed $key
protected integer $index
protected integer $count

Methods

__construct($collection)

constructor

void
rewind()

rewinds the iterator

integer
key()

returns the current key

current()

returns the current record

void
next()

advances the internal pointer

Details

__construct($collection)

constructor

Parameters

$collection

void rewind()

rewinds the iterator

Return Value

void

integer key()

returns the current key

Return Value

integer

Doctrine_Record current()

returns the current record

Return Value

Doctrine_Record

void next()

advances the internal pointer

Return Value

void