FW: PHP and aggregated Objects
Sönke Ruempler <[email protected]>
| Newsgroups | gmane.text.doxygen.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, no one answered to my mail on the users list so I hope the developers and insiders may have an answer for me. Here the mail I sent to the users mailing list: Sönke Ruempler <mailto:[email protected]> wrote on Wednesday, September 14, 2005 11:19 AM: > I'm using doxygen (1.4.4-20050815) for documenting my PHP(5) projects > and it works really nice, especially the graphical features. > > But I ran into a little problem. Doxygen has the feature to show > aggregated objects in class members with violett dashed lines. This > does not work right for me with PHP class. > > 1. PHP does not have type hints in class members. > > Example: > > class Blah { > protected $blah = NULL; > } > > So I tried to make it via @var: > > class Blah { > /** > * @var Some_Aggregated_Class This is an aggregated class ..... > */ > protected $blah = NULL; > } > > But doxygen seems to ignore that. Even the description is not shown. > > Now I tried a little bit further and changed the member declaration > into: > > protected Some_Aggregated_Class $blah = NULL; > > That works for doxygen, it adds "Some_Aggregated_Class" to the > collaboration diagram of "Blah", but it's no valid PHP syntax. > > > 2. Wrong behaviour with static members and constants: > > class Blah { > static public $var = 0; > const some_constant = 'huh'; > } > > Doxygen treats them as class types and shows `const' and `static' als > classes in collaboration diagram. Any help would be appreciated. Nice weekend. -soenke ------------------------------------------------------- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php