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