topical media & game development
professional-php-06-class.collectioniterator.php / php
<?
class CollectionIterator implements Iterator {
private _currIndex = 0;
private objCol) {
objCol;
this->_collection->keys();
}
function rewind() {
this->_currIndex < this->_keys[this->_collection->getItem(this->_currIndex]);
}
function next() {
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.