-rewind
-key
-current
-next
-hasMore
Niestety przy probie napisania klasy implementujacej ten interfejs dostaje blad:
Cytat
Fatal error: Class CollectionIterator contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Iterator::valid) in C:\AppServ\www\php\class.Collection.php on line 100
Inne zrodla podaja ze nalezy interfejs Iterator nie ma metody 'hasMore' lecz 'valid' (np http://www.phptr.com/articles/article.asp?...8&seqNum=3&rl=1 ). Skad bierze sie ta rozbieznosc? Przeciez zrodla takie jak zend czy wspomniana ksiazka nie wziely tego z powietrza :-). Szukalem w manualu php, jednak nic nie znalazlem o tym interfejsie.