class Doctrine_Node_NestedSet_PreOrderIterator implements Iterator (View source)

Doctrine_Node_NestedSet_PreOrderIterator

Properties

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

Methods

__construct($record, $opts)

No description

void
rewind()

rewinds the iterator

integer
key()

returns the current key

current()

returns the current record

void
next()

advances the internal pointer

boolean
valid()

No description

count()

No description

Details

__construct($record, $opts)

Parameters

$record
$opts

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

boolean valid()

Return Value

boolean whether or not the iteration will continue

count()