[Doxygen-develop] FW: PHP and aggregated Objects
Brought to you by:
dimitri
From: <rue...@to...> - 2005-09-16 06:20:31
|
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=F6nke Ruempler <mailto:rue...@to...> 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.=20 >=20 > 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. =20 >=20 > 1. PHP does not have type hints in class members. >=20 > Example: >=20 > class Blah { > protected $blah =3D NULL; > } >=20 > So I tried to make it via @var: >=20 > class Blah { > /** > * @var Some_Aggregated_Class This is an aggregated class ..... > */ > protected $blah =3D NULL; > } >=20 > But doxygen seems to ignore that. Even the description is not shown. >=20 > Now I tried a little bit further and changed the member declaration > into:=20 >=20 > protected Some_Aggregated_Class $blah =3D NULL; >=20 > That works for doxygen, it adds "Some_Aggregated_Class" to the > collaboration diagram of "Blah", but it's no valid PHP syntax.=20 >=20 >=20 > 2. Wrong behaviour with static members and constants: >=20 > class Blah { > static public $var =3D 0; > const some_constant =3D 'huh'; > } >=20 > Doxygen treats them as class types and shows `const' and `static' als > classes in collaboration diagram.=20 =20 Any help would be appreciated. Nice weekend. -soenke |