Zend Studio中PHP扩展的代码完成? [英] Code completion for PHP extensions in Zend Studio?

查看:73
本文介绍了Zend Studio中PHP扩展的代码完成?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从PECL安装HTTP扩展名之后,我希望Zend Studio 6能够识别提供的HTTP *类并提供代码完成功能.但是,事实并非如此.如何使Zend Studio识别PHP扩展提供的类?具体来说,我希望能够在这些类上使用代码竞争.

After having installed the HTTP extension from PECL, I expected Zend Studio 6 to recognize the provided HTTP* classes and for code completion to be made available. This is not the case, however. How do I get Zend Studio to recognize classes provided by PHP extensions? Specifcally, I want to be able to use code competition on these classes.

推荐答案

我使用了Michael Spector的phpgenerator.php脚本.它会生成一个php文档文件夹,其中包含您PC上已加载的扩展名.之后,可以将文档路径添加到Eclipse(Zend Studio)包含路径.代码完成的工作就像一种魅力.

I used the phpgenerator.php script from Michael Spector. It generates a php documentation folder with the loaded extensions on your pc. Afterwards the doc path can be added to the Eclipse (Zend Studio) include path. Code Completion works like a charm.

用法:

console: php phpgenerator.php $path_to_doc_output

http://dev.eclipse.org/viewcvs/viewvc.cgi/org.eclipse.pdt/plugins/org.eclipse.php.core/Resources/language/?root=Tools_Project

  • 此脚本可用于为PDT生成PHP模型.
  • 它根据正在运行的PHP中加载的扩展来构建PHP函数,
  • 使用从PHP.net文档中收集的补充信息 *
  • @author Michael Spector
  • This script can be used for generating PHP model for PDT.
  • It builds PHP functions according to the loaded extensions in running PHP,
  • using complementary information gathered from PHP.net documentation *
  • @author Michael Spector

这篇关于Zend Studio中PHP扩展的代码完成?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆