Book a Demo

Author Topic: Modeling & Code Engineering PHP with UML and EA  (Read 5746 times)

cauleyfj

  • EA Novice
  • *
  • Posts: 7
  • Karma: +0/-0
    • View Profile
Modeling & Code Engineering PHP with UML and EA
« on: June 29, 2008, 02:44:25 pm »
I have looked at the examples in the above EA Topic and I would like to know how EA can generate any code other than classes?
Frank J. Cauley

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: Modeling & Code Engineering PHP with UML a
« Reply #1 on: June 30, 2008, 04:06:08 am »
Hey Frank,

Not by (current) design, but you can do some 'indirectly' through several means. At least not from your model.

Search the forum and the Sparx site; I think there's some information on add-ins that might do some generation from sequence diagrams. There is also a generator that works from state models; at present it is part of the UML for Real Time companion product (i.e. not the core EA product) from Sparx. That product is in beta, and is available as such to registered users. See the Latest News section, or search forum posts in the past week; somebody (I think one of the Sparxians) posted a link to the beta.

As for reverse engineering, EA can generate sequence diagrams by 'watching' a debug session in .Net, and perhaps Java. See the EA documentation or search the forum for this. There might also be a white paper you can find in the Resources section of the Sparx Web site.

HTH, David
« Last Edit: June 30, 2008, 04:06:35 am by Midnight »
No, you can't have it!

Randy Casburn

  • EA Novice
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Modeling & Code Engineering PHP with UML and E
« Reply #2 on: July 11, 2008, 12:37:04 pm »
Quote
I have looked at the examples in the above EA Topic and I would like to know how EA can generate any code other than classes?

I'm a CodeIgniter user.  I have written some custom transformations that write some shells for my Model classes for me automatically.  It really is a breeze.  From what I can see, given the time and study of the intermediary scripting language, EA would transform a lot into code other than just classes.  I can't say I have the depth to full state that yet.

I'm also a NuSphere PhpEd user.  I've put in a request that Sparx consider implementing the OLE COM IE toolbar for the NuSphere PHP debugger.  That should allow them to capture the stack trace from a PHP run so that a EA could build Sequence Diagrams of your CakePHP runs for you on the fly.  It certainly would save a lot of time when some hands us a pile of code and says "what does this do" or "why won't this work".

I think that would be great.  Phpdbg is widely used.  Whether Sparx makes the effort is the question I suppose.  

So what do you think?  Do you use any of these products?  I know you use CakePHP. I mean the others.

Randy