php-src/ext/spl/examples/norewinditerator.inc
Marcus Boerger 68c22fba72 - Documentation update
- Checkin doxygen config file
# A patched version of doxygen is needed, hopefully 1.3.8 will contain it
2004-05-10 17:26:03 +00:00

53 lines
683 B
PHP
Executable File

<?php
/** @file norewinditerator.inc
* @ingroup Examples
* @brief class NoRewindIterator
* @author Marcus Boerger
* @date 2003 - 2004
*
* SPL - Standard PHP Library
*/
/** @ingroup Examples
* @brief An Iterator that doesn't call rewind
* @author Marcus Boerger
* @version 1.0
*
*/
class NoRewindIterator implements Iterator
{
protected $it;
function __construct(Iterator $it)
{
$this->it = $it;
}
function rewind()
{
// nothing to do
}
function valid()
{
return $this->it->valid();
}
function current()
{
return $this->it->current();
}
function key()
{
return $this->it->key();
}
function next()
{
$this->it->next();
}
}
?>