2004-04-28 21:52:51 +00:00
|
|
|
<?php
|
|
|
|
|
2004-05-10 17:26:03 +00:00
|
|
|
/** @file norewinditerator.inc
|
2004-10-31 18:43:00 +00:00
|
|
|
* @ingroup SPL
|
2004-05-10 17:26:03 +00:00
|
|
|
* @brief class NoRewindIterator
|
|
|
|
* @author Marcus Boerger
|
|
|
|
* @date 2003 - 2004
|
|
|
|
*
|
|
|
|
* SPL - Standard PHP Library
|
|
|
|
*/
|
|
|
|
|
2004-10-31 19:51:34 +00:00
|
|
|
/** @ingroup SPL
|
2004-10-31 18:43:00 +00:00
|
|
|
* @brief An Iterator wrapper that doesn't call rewind
|
2004-04-28 21:52:51 +00:00
|
|
|
* @author Marcus Boerger
|
2004-10-31 15:36:08 +00:00
|
|
|
* @version 1.1
|
2004-04-28 21:52:51 +00:00
|
|
|
*
|
|
|
|
*/
|
2004-10-31 15:36:08 +00:00
|
|
|
class NoRewindIterator extends IteratorIterator
|
2004-04-28 21:52:51 +00:00
|
|
|
{
|
2004-10-31 15:36:08 +00:00
|
|
|
/** Simply prevent execution of inner iterators rewind().
|
|
|
|
*/
|
2004-04-28 21:52:51 +00:00
|
|
|
function rewind()
|
|
|
|
{
|
|
|
|
// nothing to do
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|