diff options
Diffstat (limited to 'ext/spl/internal/parentiterator.inc')
-rwxr-xr-x | ext/spl/internal/parentiterator.inc | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/ext/spl/internal/parentiterator.inc b/ext/spl/internal/parentiterator.inc deleted file mode 100755 index 7fb0f11dd3..0000000000 --- a/ext/spl/internal/parentiterator.inc +++ /dev/null @@ -1,53 +0,0 @@ -<?php - -/** @file parentiterator.inc - * @ingroup SPL - * @brief class FilterIterator - * @author Marcus Boerger - * @date 2003 - 2005 - * - * SPL - Standard PHP Library - */ - -/** - * @brief Iterator to filter parents - * @author Marcus Boerger - * @version 1.1 - * @since PHP 5.0 - * - * This extended FilterIterator allows a recursive iteration using - * RecursiveIteratorIterator that only shows those elements which have - * children. - */ -class ParentIterator extends FilterIterator implements RecursiveIterator -{ - /** @param $it the RecursiveIterator to filter - */ - function __construct(RecursiveIterator $it) - { - parent::__construct($it); - } - - /** @return whetehr the current element has children - */ - function accept() - { - return $this->it->hasChildren(); - } - - /** @return whether the current element has children - */ - function hasChildren() - { - return $this->it->hasChildren(); - } - - /** @return the ParentIterator for the current elements children - */ - function getChildren() - { - return new ParentIterator($this->it->getChildren()); - } -} - -?>
\ No newline at end of file |