- 2009-11-29: mongodb_watchdog module created by dereine, ported to D7 by me in about half an hour, and migrated in a larger MongoDB project by damz before the hour ended. Wow...
- 2009-07-13: 100% unit test coverage on Taxonews for both D6 and D7 versions
- 2009-02-03: the new Drupal-based site for the golden jubilee of the french "Ministère de la Culture", which OSInet helped build, is now online
- 2009-01-22: new API site for CCK à la api.drupal.org
Configuring the Zend Studio PHPDocumentor extension for PHP-GTK
Zend Studio is a convenient environment to code in PHP, even though it is not currently possible to use it for integrated debugging of PHP-GTK code: its php completion and file management, and phpdoc integration make it very useful for the PHP-GTK environment too. However some settings are necessary to ease its use, due to the specific extensions typically used by PHP-GTK programs: phpw files for applications, and glade / gladep for Glade files storing UIs.
Recognizing PHP-GTK files within the Studio IDE
First things first, chances are you've already noticed Zend Studio didn't consider the frequently used .phpw files to be "Web documents", or even actual PHP, and found how to configure it for them. If you haven't, it's real simple (example given for Zend Studio 5.2.0) :
- Start Zend Studio
- Open the
Tools→Preferences dialog - Choose the
File Typestab - Choose the
PHP filesin the top left list - Click
Addon the top right button, near theFile type extensionlist - Add the extensions needed by PHP-GTK:
phpwwithin this category. Do not include the dot before the extension. - Continue with the
XML filesection, addinggladeandgladep(glade project files). - That's it ! You now have access to the full features of the Zend Studio IDE on Drupal components
Generating PHPDocumentor documentation for PHP-GTK files
Zend Studio 5.x comes bundled with PHPDocumentor and some integration work done.
However, Studio does not reconfigure the PHPDocumentor
file types from its internal preferences system,
so when you try and generate documentation using
Zend Studio's
Tools → PHPDocumentor
wizard, you'll stumble on this error:

This time the workaround is not within Zend Studio itself:
although Zend could have integrated this setting into
PHPdocumentor, they didn't do it (yet ?) in version 5.2.0.
The setting is located in file <studio directory>/bin/phpdocumentor/phpDocumentor.ini.
You can just as well edit it within the IDE while it's up.
You'll find it's a vanilla .ini file,
with the files to be processed as PHP source listed in
a _phpDocumentor_phpfile_exts section:
(...skip beginning of file...) [_phpDocumentor_phpfile_exts] php php3 php4 phtml (...skip rest of file...)
All it takes is to add the extensions we need:
(...skip beginning of file...) [_phpDocumentor_phpfile_exts] php php3 php4 phtml phpw (...skip rest of file...)
That's it ! You can now generate docs for your PHP-GTK code from within Zend Studio. Don't forget to add the tagged comments into your code, now !
| Attachment | Size |
|---|---|
| phpdocumentor-phpw-not-a-php-file.png | 37.59 KB |





Recent comments
3 weeks 1 day ago
3 weeks 2 days ago
3 weeks 2 days ago
8 weeks 2 days ago
13 weeks 5 days ago
13 weeks 5 days ago
14 weeks 17 hours ago
14 weeks 17 hours ago
14 weeks 2 days ago
15 weeks 4 days ago