phaser/2.7.0/resources/docgen/json.php
2016-11-22 01:36:56 +00:00

26 lines
No EOL
545 B
PHP
Executable file

<?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();
$obj = $gen->get($src);
$obj->extend();
echo $obj->getJSON();
?>