Why PhpDocumentor Is Not Parsing .class files?

alexisb
alexisb's picture

Joined: 2005-11-24
Posts: 56
Posted: Sat, 2005-12-31 20:36

Hi, I'm trying to generate the API docs using PhpDocumentor in the latest source installed in my server (Fedora Core 3), I have everything running with no problem but when I run phpdoc (command line tool and web version both give me the same problem) I get:

Reading file /var/www/html/gallery2/modules/core/classes/GalleryUser.class -- File not parsed, not a php file

PhpDocumentor website is not very clear and I can't find what I may be missing.

The command I'm using is something from shell is like:

phpdoc -d /home/alexis/html/gallery2/modules -t /home/alexis/html/gallery2/apidoc -i *.po,*.mo,*.gif,*.png

I also tried with:

phpdoc -d /home/alexis/html/gallery2/modules -f *.class -t /home/alexis/html/gallery2/apidoc -i *.po,*.mo,*.gif,*.png

asking for .class files explicitly but still can't parse .class files.

Obviously I can't get useful API docs without the code from the .class files.

I know there is an online version of the API but I would like to be able to generate my own in order to compare with the code while I work in some custom modules.

Maybe the Gallery team could let us know the command you used to generate the online API docs?

Thanks!

Alexis Bellido - Ventanazul web solutions

 
alexisb
alexisb's picture

Joined: 2005-11-24
Posts: 56
Posted: Sat, 2005-12-31 21:03

I know it may look silly answering my own questions but this could help others :)

I solved the problem by editing the default phpDocumentor.ini file that comes with phpDocumentor, just added "class" to the list of acceptable php file extensions, API docs are being generated now.

Regards!

Alexis Bellido - Ventanazul web solutions