Sparx Systems Forum

Enterprise Architect => Suggestions and Requests => Topic started by: christopol on March 15, 2004, 04:58:38 am

Title: PHP Pre-reqs
Post by: christopol on March 15, 2004, 04:58:38 am
I'd buy this project for my PHP developpement if :

(1) EA Architect could deal with
function & foo () {
syntaxe (returning by references).
(I think function foo (&$var) is ok)

(2) EA Archetect could interprete and produce
/**
 * @var type $name description of $name
**/
 var $name;
syntaxe as in PhpDocumentor
( ditto for :
 * @param type $name description of $name
and
 * @return type description of $return

Title: Re: PHP Pre-reqs
Post by: Sam_Mancarella on March 15, 2004, 05:48:26 pm
Thank you for your interest in EA's support for the PHP language.

We will definately add by-reference parameter support for function parameters during the next two builds. We will also consider supporting the PhpDocumentor documentation syntax for a future release of EA.

Best Regards

Sam Mancarella
Title: Re: PHP Pre-reqs
Post by: christopol on March 15, 2004, 11:22:29 pm
I'm not talking about *by-reference parameter* support, but about *by-reference return* support.

Do you see what I mean ?

function & foo () {
       // Find something
       return $something
}

$something is returned by reference.

The problem is that in EA, the program will take the "&" as the name of the function.

In your code-parsing functions, just maintain the "&", and it'l be a good first step.  (Then again, I'd like a build where you put & all the time).  It's all explained concisely here:
http://www.php.net/manual/en/language.references.php
Title: Re: PHP Pre-reqs
Post by: christopol on March 17, 2004, 05:00:06 am
Just a note to renew my interest in a PHP factory.