PHP Classes

File: doc/main.php

Recommend this page to a friend!
  Classes of Everton da Rosa   XtPHP   doc/main.php   Download  
File: doc/main.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: XtPHP
General purpose library of utility classes
Author: By
Last change:
Date: 10 years ago
Size: 586 bytes
 

Contents

Class file image Download
<?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>";
}

?>