From: Richard T. <ric...@ht...> - 2003-04-19 08:44:38
|
On Fri, 2003-04-18 at 22:33, Leandro Lucarella wrote: > Richard Torkar, el viernes 18 de abril a las 14:11 me escribiste: > > > Thanks a lot for the patch Leandro! > > I think you should definitely try to make it PHP5 compatible. > > The question is should we support "-t php4" and "-t php5"? > > > > I don't know since I'm not exactly a PHP guru.... :) > > I think yes. PHP5 has a lot of new features like attributes and methods > visibility (public, private, protected), namespaces, different > contructor (__contruct()), destructor (__destruct()), copy contructor > (__copy()), static attributes/methods and abstract classes and methods. > If you want to take advanteges of this new stuff, the resulting code > will not be php4 (or php3) compatible. > > The problem is I don't know if I will finally make the php5 generator, > since I found (in this list) another similar proyect (xmi2code) that > uses Umbrello xmi diagrams to generate code. Umbrello is an UML Modeller > and is has much more improved support for UML diagrams than DIA. So, I > hope you don't be mad at me but I think that (first) I'll try to make > the PHP5 generator for xmi2code. Even so, I'll try to complete the TODO > list I've attached to my original message and here I send a new patch > that makes private and protected attributes and methods starts with an > underscore (the package_in_classname stuff is more complicated since the > constructor must be changed too). Patch applied. You just tell us when you need a CVS account. /Richard |