4
* @brief Program Tree view example
6
* @author Marcus Boerger
9
* Usage: php tree.php \<path\>
11
* Simply specify the path to tree with parameter \<path\>.
14
// The following line only operates on classes which are converted to c already.
15
// But does not generate a graphical output.
16
//foreach(new RecursiveIteratorIterator(new ParentIterator(new RecursiveDirectoryIterator($argv[1])), 1) as $file) {
20
Usage: php ${_SERVER['PHP_SELF']} <path>
22
Displays a graphical tree for the given <path>.
24
<path> The directory for which to generate the tree graph.
31
if (!class_exists("DirectoryTreeIterator", false)) require_once("directorytreeiterator.inc");
32
if (!class_exists("DirectoryGraphIterator", false)) require_once("directorygraphiterator.inc");
35
foreach(new DirectoryGraphIterator($argv[1]) as $file)