On Wed, May 7, 2008 at 5:33 AM, <[EMAIL PROTECTED]> wrote: > Regarding php5 code generation, > > I would like class names not to contain the package names separated by > underscores , this lead into really unmaintainable source code like in this > little example : > ... > class core_kernel_classes_ApiModelOO > extends core_kernel_classes_ApiI > implements core_api_classes_ApiModel > ... > > new core_kernel_classes_ApiModelOO() > ... > > Have you any workaround, hint to this ?
Currently this behavior is not configurable, so it would require modifying the source code of the PHP generator to change it. The names are generated in generateClassifierName() here http://argouml-php.tigris.org/source/browse/argouml-php/trunk/src/org/argouml/language/php/generator/NameGenerator.java?view=markup > This problem has already be reported by someone else wioth no answer: > http://argouml.tigris.org/servlets/ReadMsg?listName=users&msgNo=3664 That's not a problem report. It's just a question on the user list, like yours. To report a problem or request a new feature, like this one, please check the existing list of issues http://argouml.tigris.org/issues/buglist.cgi?Submit+query=Submit+query&subcomponent=PHP+module and then file a new feature request if you don't see yours. Since the current behavior conforms to the PEAR coding standards http://pear.php.net/manual/en/standards.naming.php I think the default is unlikely to change since that's what the code generator was designed to follow, but you could request that the behavior be configurable. BTW, I'm no expert on PHP coding conventions, but the current behavior also conforms to Zend coding conventions http://framework.zend.com/manual/en/coding-standard.naming-conventions.html Are there coding conventions for PHP that recommend something different? It might be good to include some pointers in your feature request. Tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
