Back to index

php5  5.3.10
directorygraphiterator.inc
Go to the documentation of this file.
00001 <?php
00002 
00017 class DirectoryGraphIterator extends DirectoryTreeIterator
00018 {
00019        function __construct($path)
00020        {
00021               RecursiveIteratorIterator::__construct(
00022                      new RecursiveCachingIterator(
00023                             new ParentIterator(
00024                                    new RecursiveDirectoryIterator($path, RecursiveDirectoryIterator::KEY_AS_FILENAME
00025                                    )
00026                             ),
00027                             CachingIterator::CALL_TOSTRING|CachingIterator::CATCH_GET_CHILD
00028                      ),
00029                      parent::SELF_FIRST
00030               );
00031        }
00032 }
00033 
00034 ?>