Class: Doctrine_Collection_Iterator

Source Location: /Doctrine/Collection/Iterator.php

Class Doctrine_Collection_Iterator

Class Overview

Implements interfaces:

  • Iterator (internal interface)

Doctrine_Collection_Iterator iterates through Doctrine_Collection

Located in /Doctrine/Collection/Iterator.php [line 33]



		
				Author(s):
		
		
		API Tags:
Abstract:  

Information Tags:
Version:  $Revision: 1323 $
Link:  www.phpdoctrine.com
Since:  1.0
License:  LGPL

Properties

Methods

[ Top ]
Direct descendents
Child Class Description
Doctrine_Collection_Iterator_Expandable Doctrine_Collection_Iterator_Normal
Doctrine_Collection_Iterator_Normal Doctrine_Collection_Iterator_Normal
Doctrine_Collection_Iterator_Offset Doctrine_Collection_Iterator_Normal

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

[ Top ]
Method Summary
Doctrine_Collection_Iterator   __construct()   constructor
Doctrine_Record   current()   returns the current record
integer   key()   returns the current key
void   next()   advances the internal pointer
void   rewind()   rewinds the iterator

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


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


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


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


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


[ Top ]
Methods
Constructor __construct  [line 60]

  Doctrine_Collection_Iterator __construct( $collection  )

constructor

Parameters:
   $collection: 

API Tags:
Access:  public


[ Top ]
current  [line 94]

  Doctrine_Record current( )

returns the current record


API Tags:
Access:  public


Implementation of:
Iterator::current

[ Top ]
key  [line 85]

  integer key( )

returns the current key


API Tags:
Access:  public


Implementation of:
Iterator::key

[ Top ]
next  [line 103]

  void next( )

advances the internal pointer


API Tags:
Access:  public


Implementation of:
Iterator::next

[ Top ]
rewind  [line 71]

  void rewind( )

rewinds the iterator


API Tags:
Access:  public


Implementation of:
Iterator::rewind

[ Top ]