php-src/ext/spl/examples/directorytree.inc
Marcus Boerger a6feb3f405 - Update examples
- Update documentation
- Move classes/interfaces already implemented in c to new subdir internal
2004-05-08 12:24:15 +00:00

18 lines
363 B
PHP
Executable File

<?php
/** \ingroup Examples
* @brief A directory iterator that does not show '.' and '..'.
* @author Marcus Boerger
* @version 1.0
*/
class DirectoryTree extends RecursiveIteratorIterator
{
/** Construct from a path.
* @param $path directory to iterate
*/
function __construct($path) {
parent::__construct(new DirectoryFilterDots($path));
}
}
?>