| Recommend this page to a friend! |
| Classes of Martin Alterisio | > | NamespaceSim | > | Download .tar.gz .zip | > | > | > | |||||
|
| ||||||||||||||||||||||||||||||||||||||||||||
| Detailed description | ||
| 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. Error mapping has been added since 0.4.0, which requires that caching is enabled. This features makes php errors in rewritten files point to the right place in the original file. As of version 0.5.0 nsim supports namespaces in: * class definition (w/inheritance & interfaces implementation) * interface definition (w/inheritance) * static class vars & functions * class constants * instanceof operator * type hinting |
| Groups | ||
| PHP 5 | Classes using PHP 5 specific features | View top rated classes | |
| Language | Constructs to assist in the language control | View top rated classes | |
| Code Generation | Compilers and tools that generate code automatically | View top rated classes |
| Freshmeat project | Applications | |||||||
No application links were specified for this class.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||