<?php
$files = scandir($xml_dir);
foreach($files as $file)
{
if(fnmatch("*.xml", $file))
{
$class[] = $file;
}
}
foreach($class as $file)
{
$xml = simplexml_load_file($xml_dir.$file);
$class_name = $xml->class['name'];
echo "<li><a href='?class=$file'>$class_name</a>: ".$xml->class->description."</li>";
echo "<ul>";
foreach($xml->class->methods as $functions)
{
foreach($functions as $method)
{
$method_name = $method['name'];
echo "<li><a href='?class=$file&method=$method_name'>$method_name</a>: ".$method->description."</li>";
}
}
echo "</ul>";
}
?>
|