xp-framework/xp-framework — pull request #114 by thekid (2012-01-21 18:06:44+00:00)
Title: Implement modules RFC

This pull request contains the implementation for the modules RFC - see xp-framework/rfc#220.

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();
}
?>
```