PHP-Klasse::NamespaceSim 16.07.2007

Kurzbeschreibung: Emulate class namespaces under PHP 5
Veröffentlicht am: 16.07.2007
Gruppe(n):
- Code Generation
- Language
- PHP 5
Beschreibung:
This package can be used to emulate class namespaces under PHP 5.
It parses PHP code to extract namespace definition statements. The code is rewritten to emulate the namespace support in a way similar to the Java language namespace support.
This package implements new commands named package and import. The package command defines the package that a class belongs. The package name is prepended to the class names using PEAR class naming and directory conventions.
The import command indicates that the package should be imported for use in the PHP script on which the import command is used. Classes that are not found in the current script are looked in the imported namespaces.
Link: NamespaceSim