class PropelOnDemandIterator implements Iterator
Class for iterating over a statement and returning one Propel object at a time
Methods
__construct(PropelFormatter $formatter, PDOStatement $stmt)
|
||
closeCursor()
|
||
integer |
count()
Returns the number of rows in the resultset Warning: this number is inaccurate for most databases. |
|
BaseObject |
current()
Gets the current Model object in the collection This is where the hydration takes place. |
|
string |
key()
Gets the current key in the iterator |
|
next()
Advances the cursor in the statement Closes the cursor if the end of the statement is reached |
||
rewind()
Initializes the iterator by advancing to the first position This method can only be called once (this is a NoRewindIterator) |
||
boolean |
valid()
|
Details
at line 47
public
__construct(PropelFormatter $formatter, PDOStatement $stmt)
at line 54
public
closeCursor()
at line 65
public integer
count()
Returns the number of rows in the resultset Warning: this number is inaccurate for most databases.
Do not rely on it for a portable application.
at line 78
public BaseObject
current()
Gets the current Model object in the collection This is where the hydration takes place.
at line 88
public string
key()
Gets the current key in the iterator
at line 97
public
next()
Advances the cursor in the statement Closes the cursor if the end of the statement is reached
at line 114
public
rewind()
Initializes the iterator by advancing to the first position This method can only be called once (this is a NoRewindIterator)
at line 134
public boolean
valid()