directorytree.inc 531 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /** @file directorytree.inc
  3. * @ingroup Examples
  4. * @brief class DirectoryTree
  5. * @author Marcus Boerger
  6. * @date 2003 - 2005
  7. *
  8. * SPL - Standard PHP Library
  9. */
  10. /** @ingroup Examples
  11. * @brief A directory iterator that does not show '.' and '..'.
  12. * @author Marcus Boerger
  13. * @version 1.0
  14. */
  15. class DirectoryTree extends RecursiveIteratorIterator
  16. {
  17. /** Construct from a path.
  18. * @param $path directory to iterate
  19. */
  20. function __construct($path) {
  21. parent::__construct(new DirectoryFilterDots($path));
  22. }
  23. }
  24. ?>