EnzClass demo for EnzymeTemplates
by Eric Ries

This is a fairly simple demo, but it demonstrates the power of ET while
at the same time providing a (moderately) useful functionality. If anyone
is interested in developing this demo into a full-fledged product, please 
contact me.

Quickstart
----------

To install simply:

% mysqladmin -p create enzclass
% mysql -p enzclass < enzclass.sql

This will get you a simple database to work with.

You should now be able to view the page "demo2.php3" which uses the
ET library to show the class definitions for a series of PHP classes. 
Each classname is clickable, leading to a list of functions and 
variables for that class.

This data was all generated by the phpdoc.pl script from some real life source
files I had lying around. 



To Generate Your Own
--------------------

If you've got some class definitions lying around (hint: if you have ET, 
you have plenty), you can use the phpdoc.pl tool to generate your own 
data for this database.

Warning: the phpdoc.pl script is currently hard-coded to drop your existing
enzclass tables and re-create them from scratch.

Usage: 
perl phpdoc.pl <filename1> [file2] ... [fileN] | mysql -p enzclass

This will parse N PHP source files in search fo data to be inserted into
the MySQL database named "enzclass"




If You Get Errors
-----------------

Most likely, this is a problem with your include path. Check the relevant
file and make sure it points to a current install of EnzymeTemplates.



How it Works
------------
The HTML layout is all in themes/default - it is called up by the main ET
file (see the EnzymeTemplates pacakge for docs). The relevant class 
definition is in enz_objects.inc - notice that it only requires a single
class.