Doxygen+PHP 链接到其他类成员

发布于 2024-12-28 06:49:04 字数 670 浏览 1 评论 0原文

我正在使用 Doxygen 而不是 phpDocs 来记录一个 PHP 项目,因为该项目涉及 COCOA 编程,所以我决定使用一个通用的文档工具。

我使用语法 ClassName::method name() 链接到其他类方法没有问题

,但是当尝试使用语法访问另一个类中的类成员(无论是公共的还是私有的)时,我没有得到链接类名::varName

在一个文件中。

class A {
    /**
    * A Member
    */
    private $a;
    /**
    * A method
    */
    public myMethod(){}
}

在其他文件中。

/**
* Doxygen block
*
* This link is not working!!
* A::a
* This one the same!
* A::$a
*
* This link is working:
* A::myMethod().
*/

更新: 现在可以使用了,语法 ClassName::varName 现在可以使用了。之前不知道出了什么问题,所以对这个无用的问题感到抱歉。一旦系统允许我回答我自己的问题,我就会将其标记为已回答。

I'm documenting a PHP project with Doxygen instead of phpDocs because the project involves COCOA programming so I decide to use a common documentation tool.

I have no problem linking to other class methods using the syntax ClassName::method name()

but I get no link when trying to reach a class member in another class, be it public or private with the syntax ClassName::varName.

In one file.

class A {
    /**
    * A Member
    */
    private $a;
    /**
    * A method
    */
    public myMethod(){}
}

In other file.

/**
* Doxygen block
*
* This link is not working!!
* A::a
* This one the same!
* A::$a
*
* This link is working:
* A::myMethod().
*/

UPDATED:
It's working now, the syntax ClassName::varNameis now working. Can't tell what was wrong before so sorry for this useless question. I will mark it as answered as soon as the system allows me to answer my own question.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文