2014-09-29 23:32:17 +00:00
|
|
|
<?php
|
|
|
|
if (isset($_GET['src']))
|
|
|
|
{
|
|
|
|
$src = $_GET['src'];
|
|
|
|
}
|
|
|
|
|
|
|
|
require 'src/Block.php';
|
|
|
|
require 'src/ClassDesc.php';
|
|
|
|
require 'src/Constant.php';
|
|
|
|
require 'src/Method.php';
|
|
|
|
require 'src/Parameter.php';
|
|
|
|
require 'src/Property.php';
|
|
|
|
require 'src/ReturnType.php';
|
|
|
|
require 'src/Processor.php';
|
|
|
|
require 'src/PhaserDocGen.php';
|
|
|
|
|
|
|
|
header('Content-Type: application/json');
|
|
|
|
|
|
|
|
$gen = new PhaserDocGen();
|
|
|
|
$gen->start();
|
|
|
|
|
2014-10-21 22:17:52 +00:00
|
|
|
$obj = $gen->get($src);
|
|
|
|
$obj->extend();
|
2014-09-29 23:32:17 +00:00
|
|
|
|
2014-10-21 22:17:52 +00:00
|
|
|
echo $obj->getJSON();
|
2014-09-29 23:32:17 +00:00
|
|
|
?>
|