From: Marcus Boerger Date: Mon, 1 Nov 2004 00:33:41 +0000 (+0000) Subject: - Update X-Git-Tag: RELEASE_0_2~782 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=846666109bcceb9b19f02c3b9d915d811c7f4e36;p=php - Update --- diff --git a/ext/spl/examples/directoryfilterdots.inc b/ext/spl/examples/directoryfilterdots.inc index abad283234..fe03a81411 100755 --- a/ext/spl/examples/directoryfilterdots.inc +++ b/ext/spl/examples/directoryfilterdots.inc @@ -12,12 +12,12 @@ /** @ingroup Examples * @brief A filtered DirectoryIterator * @author Marcus Boerger - * @version 1.0 + * @version 1.1 * * This Iteraotr takes a pathname from which it creates a DirectoryIterator * and makes it recursive. Further more it filters the entries '.' and '..'. */ -class DirectoryFilterDots extends FilterIterator implements RecursiveIterator +class DirectoryFilterDots extends RecursiveFilterIterator { /** Construct from a path. * @param $path directory to iterate @@ -33,21 +33,7 @@ class DirectoryFilterDots extends FilterIterator implements RecursiveIterator { return !$this->getInnerIterator()->isDot(); } - - /** @return whether the current entry is a directory - */ - function hasChildren() - { - return $this->getInnerIterator()->hasChildren(); - } - /** @return the current subdirectory as a new DirectoryFilterDots instance. - */ - function getChildren() - { - return new DirectoryFilterDots($this->getInnerIterator()->getPathname()); - } - /** @return the current entries path name */ function key()