mirror of
https://github.com/php/php-src.git
synced 2024-10-10 03:02:13 +00:00
a6feb3f405
- Update documentation - Move classes/interfaces already implemented in c to new subdir internal
18 lines
363 B
PHP
Executable File
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));
|
|
}
|
|
}
|
|
|
|
?>
|