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 curesor 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 41
public
__construct(PropelFormatter $formatter, PDOStatement $stmt)
at line 48
public
closeCursor()
at line 59
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 72
public BaseObject
current()
Gets the current Model object in the collection This is where the hydration takes place.
at line 82
public string
key()
Gets the current key in the iterator
at line 91
public
next()
Advances the curesor in the statement Closes the cursor if the end of the statement is reached
at line 108
public
rewind()
Initializes the iterator by advancing to the first position This method can only be called once (this is a NoRewindIterator)