Re: PHP_UML / reading in XMI 1.x files
| From: | Christian Weiske | Date: | Sat, 10 Jan 2009 08:29:50 +0000 |
| Subject: | Re: PHP_UML / reading in XMI 1.x files | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-29581@lists.php.net to get a copy of this message | ||
Hello Baptiste,
> The HTML/PHP generators rely completely on XSLT, that's why only XMI
> 2.x is supported at the moment.
Oh - I thought that the XMI would be translated into an internal model
that can be converted into anything afterwards.
> Still, I am currently implementing, in PHP_UML, an XMI converter to
> translate 1.x models into 2.x models.
Good to hear.
> I have never used the Umbrello PHP generator. Not sure that what I
> gonna do will be much better... What's make it so awful?
- It doesn't adhere to the PEAR Coding Standards, so you need to fix
every class afterwards
- It puts classes not into the right directories but in creates files
like Class_Name_With_Underscores.php, not Class/Name/With/Slashes.php
as we like it in PEAR (and at work)
- Because of the file names, one needs to fix all require_once
statements after code generation manually.
- It adds require_once statements for basic types like string, array,
float etc. which one needs to remove manually, too.
- It makes pretty dumb errors when generating code for e.g. interfaces.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
-= Geeking around in the name of science since 1982 =-
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc