1+ <?php
2+ require 'src/Block.php ' ;
3+ require 'src/ClassDesc.php ' ;
4+ require 'src/Constant.php ' ;
5+ require 'src/Method.php ' ;
6+ require 'src/Parameter.php ' ;
7+ require 'src/Property.php ' ;
8+ require 'src/ReturnType.php ' ;
9+ require 'src/Processor.php ' ;
10+ ?>
11+ <!doctype html>
12+ <html>
13+ <head>
14+ <meta charset="UTF-8" />
15+ <title>Phaser Documentation Generator v0.1</title>
16+ <style type="text/css">
17+ body {
18+ font-family: Arial;
19+ font-size: 14px;
20+ background-color: #fff;
21+ color: #000;
22+ }
23+
24+ textarea {
25+ width: 100%;
26+ height: 1000px;
27+ }
28+ </style>
29+ </head>
30+ <body>
31+
32+ <pre spellcheck="false">
33+ <?php
34+
35+ // $data = new Processor("../src/gameobjects/Sprite.js");
36+ $ data = new Processor ("../src/loader/Cache.js " );
37+
38+ echo $ data ->total () . " blocks found \n\n" ;
39+
40+ echo "\nConstants: \n\n" ;
41+
42+ for ($ i = 0 ; $ i < count ($ data ->consts ); $ i ++)
43+ {
44+ print_r ($ data ->consts [$ i ]->getJSON ());
45+ // $const = $data->consts[$i];
46+ // echo "\n\n";
47+ // echo $const->name;
48+ // echo "\n";
49+ // print_r($const->types);
50+ }
51+
52+ /*
53+ echo "\nMethods:\n\n";
54+
55+ for ($i = 0; $i < count($data->methods); $i++)
56+ {
57+ $method = $data->methods[$i];
58+ echo "\n\n";
59+ echo $method->name;
60+ echo "\n";
61+ print_r($method->help);
62+ print_r($method->parameters);
63+ print_r($method->returns);
64+ }
65+
66+ echo "\nProperties:\n\n";
67+
68+ for ($i = 0; $i < count($data->properties); $i++)
69+ {
70+ $property = $data->properties[$i];
71+ echo "\n\n";
72+ echo $property->name . "\n";
73+ // print_r($property->types);
74+ echo "Source code line " . $property->line . "\n";
75+ echo "Default: " . $property->default . "\n";
76+ echo "Help: " . "\n";
77+ print_r($property->help);
78+ echo "\n\n";
79+ }
80+ */
81+ ?>
82+ </pre>
83+
84+ </body>
85+ </html>
0 commit comments