Class: Doctrine_Node_NestedSet_PreOrderIterator

Source Location: /Doctrine/Node/NestedSet/PreOrderIterator.php

Class Doctrine_Node_NestedSet_PreOrderIterator

Class Overview

Implements interfaces:

  • Iterator (internal interface)

Doctrine_Node_NestedSet_PreOrderIterator

Located in /Doctrine/Node/NestedSet/PreOrderIterator.php [line 32]



		
				Author(s):
		
		
		
Information Tags:
Version:  $Revision: 1080 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Property Summary
Doctrine_Collection   $collection  
integer   $count  
integer   $index  
mixed   $key  
array   $keys  
integer   $prevIndex  
integer   $traverseLevel  

[ Top ]
Method Summary
Doctrine_Node_NestedSet_PreOrderIterator   __construct()  
void   advanceIndex()  
void   count()  
Doctrine_Record   current()   returns the current record
integer   key()   returns the current key
void   next()   advances the internal pointer
void   rewind()   rewinds the iterator
void   updateLevel()  
boolean   valid()  

[ Top ]
Properties
Doctrine_Collection   $collection [line 37]
API Tags:
Access:  protected


[ Top ]
integer   $count [line 61]
API Tags:
Access:  protected


[ Top ]
integer   $index [line 49]
API Tags:
Access:  protected


[ Top ]
mixed   $key [line 45]
API Tags:
Access:  protected


[ Top ]
array   $keys [line 41]
API Tags:
Access:  protected


[ Top ]
integer   $prevIndex [line 53]
API Tags:
Access:  protected


[ Top ]
integer   $traverseLevel [line 57]
API Tags:
Access:  protected


[ Top ]
Methods
Constructor __construct  [line 63]

  Doctrine_Node_NestedSet_PreOrderIterator __construct( $record, $opts  )

Parameters:
   $record: 
   $opts: 

API Tags:
Access:  public


[ Top ]
advanceIndex  [line 164]

  void advanceIndex( )


API Tags:
Access:  private


[ Top ]
count  [line 150]

  void count( )


API Tags:
Access:  public


[ Top ]
current  [line 117]

  Doctrine_Record current( )

returns the current record


API Tags:
Access:  public


Implementation of:
Iterator::current

[ Top ]
key  [line 107]

  integer key( )

returns the current key


API Tags:
Access:  public


Implementation of:
Iterator::key

[ Top ]
next  [line 129]

  void next( )

advances the internal pointer


API Tags:
Access:  public


Implementation of:
Iterator::next

[ Top ]
rewind  [line 96]

  void rewind( )

rewinds the iterator


API Tags:
Access:  public


Implementation of:
Iterator::rewind

[ Top ]
updateLevel  [line 155]

  void updateLevel( )


API Tags:
Access:  private


[ Top ]
valid  [line 145]

  boolean valid( )


API Tags:
Return:  whether or not the iteration will continue
Access:  public


Implementation of:
Iterator::valid

[ Top ]