norewinditerator.inc 478 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. /** @file norewinditerator.inc
  3. * @ingroup SPL
  4. * @brief class NoRewindIterator
  5. * @author Marcus Boerger
  6. * @date 2003 - 2009
  7. *
  8. * SPL - Standard PHP Library
  9. */
  10. /** @ingroup SPL
  11. * @brief An Iterator wrapper that doesn't call rewind
  12. * @author Marcus Boerger
  13. * @version 1.1
  14. * @since PHP 5.1
  15. */
  16. class NoRewindIterator extends IteratorIterator
  17. {
  18. /** Simply prevent execution of inner iterators rewind().
  19. */
  20. function rewind()
  21. {
  22. // nothing to do
  23. }
  24. }
  25. ?>