Class: StatementIterator ---------------------------------------------------------------------------------- Iterator for traversing models. This class can be used for iterating forward and backward trough MemModels. It should be instanced using the getIterator() method of a MemModel. <BR><BR>History:<UL> <LI>08-10-2004 : Class completely rewritten</LI> <LI>03-29-2004 : Problems with adding and removing statements fixed.</LI> <LI>02-21-2003 : First version of this class.</LI> </UL>
|
Current position StatementIterator does not use the build in PHP array iterator, so you can use serveral iterators on a single MemModel.
PHP | statement current() |
---|
Returns the current statement.
Return
or NULL if there is no current statement.
PHP | void moveTo(unknown $position) |
---|
Moves the pointer to a specific statement. If you set an off-bounds value, the position will be set to the last element
Arguments
PHP | statement previous() |
---|
Returns the previous statement.
Return
or NULL if there is no previous statement.