PHP and Doxygen: Class instance's method calls

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
jeff00seattle
Forum Commoner
Posts: 66
Joined: Sat Feb 28, 2009 3:27 pm

PHP and Doxygen: Class instance's method calls

Post by jeff00seattle »

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:
  1. Wizard:Mode "Optimized for C and PHP"
  2. Wizard:Diagram "Use dot tool from GraphViz package"
  3. Expert:Build EXTRACT_ALL, EXTRACT_STATIC, & EXTRACT_PRIVATE
  4. Expert:Dot HAVE_DOT, CALL_GRAPH & CALLER_GRAPH
I ran the Doxygen against PHP sources and it detects:
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
Post Reply