[umbrello] [Bug 379187] PHP class generation from code fails

Clemens John bugzilla_noreply at kde.org
Tue Apr 25 16:41:54 UTC 2017


https://bugs.kde.org/show_bug.cgi?id=379187

--- Comment #2 from Clemens John <clemens.john at floh1111.de> ---
Hi Ralph,

thanks for your reply. You are right the file
https://bugs.kde.org/attachment.cgi?id=105183 was not generated using Umbrello.
It was created manually by me. Maybe there is a misunderstanding so I'll try to
clarify what I'm trying to do to make shure we are talking about the same
topic.

I'm trying to reverse engineer php files containing php classes manually
created by me to automatically have them available as UML classes in Umbrello.
In most cases there will be imports (use statements) of classes which are not
directly available to Umbrello but reverse engineering should work
nevertheless.

During my research I found the Pear PHP_UML package [1] which generates an
*.xmi file I can open using Umbrello using the following command:

phpuml ./packages/timetracker/base/src/Models/Hour.php -o ./test.xmi

This works quite well as a workaround and I think this is what the "Code
Importing Wizard" should do out of the box if PHP is selected as language.

[1] https://pear.php.net/manual/en/package.php.php-uml.php

Best whises
Clemens

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the umbrello-devel mailing list