cvs: php-src /ext/spl/examples recursivefilteriterator.inc
| From: | Marcus Boerger | Date: | Fri, 08 Oct 2004 21:17:55 +0000 |
| Subject: | cvs: php-src /ext/spl/examples recursivefilteriterator.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-28936@lists.php.net to get a copy of this message | ||
helly Fri Oct 8 17:17:55 2004 EDT
Added files:
/php-src/ext/spl/examples recursivefilteriterator.inc
Log:
Add new example
http://cvs.php.net/co.php/php-src/ext/spl/examples/recursivefilteriterator.inc?r=1.1&p=1
Index: php-src/ext/spl/examples/recursivefilteriterator.inc
+++ php-src/ext/spl/examples/recursivefilteriterator.inc
<?php
/** @file norewinditerator.inc
* @ingroup Examples
* @brief class NoRewindIterator
* @author Marcus Boerger
* @date 2003 - 2004
*
* SPL - Standard PHP Library
*/
/** @ingroup Examples
* @brief A recursive Filter
* @author Marcus Boerger
* @version 1.0
*
*/
abstract class RecursiveFilterIterator extends FilterIterator implements RecursiveIterator
{
function __construct(RecursiveIterator $it)
{
parent::__construct($it);
}
function hasChildren()
{
return $this->getInnerIterator()->hasChildren();
}
function getChildren()
{
return $this->getInnerIterator()->getChildren();
}
}
?>