PHP and Doxygen: Class instance's method calls
Posted: Wed Mar 17, 2010 11:09 am
Hi
I understand that this sort of question should be on a Doxygen forum, however, Doxygen is not widely used for documenting PHP code. It is primarily used for C++, C, Java, Objective-C, Python, and C#.
So, I am asking the PHP community directly about my Doxygen problem.
Problem: Doxygen is not documenting (adding links to sources OR graphing calls and callers) PHP method calls made from class instances.
I currently have installed on Windows XP, latest release v1.6.3 of Doxygen.
I am using these settings within the Doxygen GUI Wizard:
a. static method calls: Foo::bar();
b. local instance method calls: $this->bar();
However, Doxygen does not detect PHP method calls made from instances of a class:
a. Created instance within local scope method calls: $oFoo = new Foo(); $oFoo->bar();
b. Created instance within local instance scope method calls: $this->oFoo = new Foo(); $this->oFoo->bar();
Has anyone have this experience in using Doxygen upon PHP code?
Thanks
Jeff in Seattle
I understand that this sort of question should be on a Doxygen forum, however, Doxygen is not widely used for documenting PHP code. It is primarily used for C++, C, Java, Objective-C, Python, and C#.
So, I am asking the PHP community directly about my Doxygen problem.
Problem: Doxygen is not documenting (adding links to sources OR graphing calls and callers) PHP method calls made from class instances.
I currently have installed on Windows XP, latest release v1.6.3 of Doxygen.
I am using these settings within the Doxygen GUI Wizard:
- Wizard:Mode "Optimized for C and PHP"
- Wizard:Diagram "Use dot tool from GraphViz package"
- Expert:Build EXTRACT_ALL, EXTRACT_STATIC, & EXTRACT_PRIVATE
- Expert:Dot HAVE_DOT, CALL_GRAPH & CALLER_GRAPH
a. static method calls: Foo::bar();
b. local instance method calls: $this->bar();
However, Doxygen does not detect PHP method calls made from instances of a class:
a. Created instance within local scope method calls: $oFoo = new Foo(); $oFoo->bar();
b. Created instance within local instance scope method calls: $this->oFoo = new Foo(); $this->oFoo->bar();
Has anyone have this experience in using Doxygen upon PHP code?
Thanks
Jeff in Seattle