]> granicus.if.org Git - php/commitdiff
- Update
authorMarcus Boerger <helly@php.net>
Mon, 1 Nov 2004 00:33:41 +0000 (00:33 +0000)
committerMarcus Boerger <helly@php.net>
Mon, 1 Nov 2004 00:33:41 +0000 (00:33 +0000)
ext/spl/examples/directoryfilterdots.inc

index abad2832343a2dc9f6e5182882b2481df246e9b2..fe03a814111ef3b90564f71d9555af5bd8f04b81 100755 (executable)
 /** @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()