From: Leandro L. <lu...@ll...> - 2003-04-10 06:07:50
|
Hi! I'm starting to use dia2code and I have to say that it's a great utility! I'm starting to make some PHP classes to PEAR (http://pear.php.net/) so I made a patch for generating a more "PEAR compatible" (to use PEAR coding standards). Changes: * License (header) is now included after <?php is opened. * More PHPDoc comments in variables and associations. * Associations are not commented. * Replaced include(""); with require_once '';. * Fixed (or broked?) files to include (or require). * Added PHPDoc comments for static vars and methods. * Replaced @returns with @return. * Added some more 'XXX' where user comment are needed. TODO: * Make private/protected methods/vars starts with an underscore. * See if It's possible to play with package names to make classnames like Package_Class (maybe Package_Class_Subclass?). I'm planning to write a code generation module for PHP5 too. Any comments/ideas/suggestions are welcome! -- LUCA - Leandro Lucarella - Usando Debian GNU/Linux Sid - GNU Generation ------------------------------------------------------------------------ E-Mail / JID: lu...@lu... GPG Fingerprint: D9E1 4545 0F4B 7928 E82C 375D 4B02 0FE0 B08B 4FB2 GPG Key: gpg --keyserver pks.lugli.org.ar --recv-keys B08B4FB2 ------------------------------------------------------------------------ Nusbaum's Rule: The more pretentious the corporate name, the smaller the organization. (For instance, the Murphy Center for the Codification of Human and Organizational Law, contrasted to IBM, GM, and AT&T.) |