首页   PHP编程   PHP产品   PHP源码   Zend框架   Ajax脚本   PHP类库   资源下载   技术论坛  
搜索:
高级搜索 收藏本站 |网站地图 |RSS订阅
 
软件名称:
NamespaceSim
界面语言:
英文软件
软件类型:
.gz
运行环境:
Win2003,WinXP,Win2000,Win9X
软件等级:
★★★★★
授权方式:
开源软件
下载地址:
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
 §最新评论:
 
Copyright@tomphp.com,2006-2009.
All Rights Reserved.