xp-framework/xp-framework — pull request #219 by thekid (2013-01-05 12:16:54+00:00)
Title: Implement modules RFC

This pull request contains the implementation for the modules RFC - see xp-framework/rfc#220. This reopens #114 which was closed because directed at the wrong branch (`xp5_9` is now `master`).

Example module
--

```php
sybase_ct extension.
*
* @ext sybase_ct
*/
module sybase_ct {
static function __static() {
DriverManager::register('sybase+ct', XPClass::forName('rdbms.sybase.SybaseConnection'));
}
}
?>
```

Reflection
--

```php
getName(); // 'sybase_ct'
$apidoc= $module->getComment();

if ($module->hasAnnotations()) {
$annotations= $module->getAnnotations();
}
?>
```