Back to index

php5  5.3.10
infiniteiterator.inc
Go to the documentation of this file.
00001 <?php
00002 
00033 class InfiniteIterator extends IteratorIterator
00034 {
00038        function next()
00039        {
00040               $this->getInnerIterator()->next();
00041               if (!$this->getInnerIterator()->valid())
00042               {
00043                      $this->getInnerIterator()->rewind();
00044               }
00045        }
00046 }
00047 
00048 ?>