[Uml-devel] Re: New php generator for Umbrello

Jonathan Riddell jr at jriddell.org
Sun Oct 26 05:25:05 UTC 2003


On Fri, Aug 22, 2003 at 04:46:50PM +0200, fjey at email.cz wrote:
> Hello Jonathan,
> 
> I've modified the Umbrello php generator to generate better php code (the original code is very poor!) - see the attachement (original file comes from /uml/codegenerators/phpwriter.cpp - umbrello-1.1.1 source distribution).
> 
> Changes:
> - strictly uses tabs for indenting
> - better (more common) comments formating
> - adds @access, @abstract, @static for member variables and/or functions
> - adds types for @param and @return (@param <type>, @return <type>); unfortunatelly umbrello does not support comments for function return value, that's why only type for @return is provided
> - some other minor (not important) changes.
> 
> I was not able to compile the latest version (from cvs) of Umbrello, that's why I did the changes in phpwriter from 1.1.1 version - I'm sorry for that, but I'm sure, you will be able to incorporate my changes into the latest source.
> 
> Best regards,
> Fjey

OK, I've put that in at last, sorry for the delay.

One thing I changed was you delaire variables as:

var int $foo;

which doesn't compile and doesn't match what is said in the PHP manual
so I changed it back to just:

var $foo;


Jonathan Riddell




More information about the umbrello-devel mailing list