我可以使用两次“@subpackage”吗?对于 phpDocumentor?

发布于 2024-10-16 04:26:24 字数 411 浏览 15 评论 0原文

例如,我有一个名为“myproj”的项目和一个名为“utils”的子包,在这个子包中又有一个名为“debug”的子包。

我可以做这样的事情吗:?

/**
  * @package myproj
  * @subpackage utils
  * @subpackage debug
  * /

提前致谢!


解决方案

还有标签@category:

@category 标签用于将包组组织在一起。

因此,您可以按以下顺序使用标签:@category、@package、@subpackage 如果这对您来说还不够,还可以在名称中使用下划线。

For example I have a project called "myproj" and a subpackage called "utils" and in this subpackage there's again a subpackage called "debug".

Can I do something like that: ?

/**
  * @package myproj
  * @subpackage utils
  * @subpackage debug
  * /

Thanks in advance!


Solution

There is also the tag @category:

The @category tag is used to organize groups of packages together.

So you can use the tags in the following order: @category, @package, @subpackage
And if that isn't enough for you, can could use also underscores in the names.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

椵侞 2024-10-23 04:26:24

我知道这个问题已经很老了,但对于任何谷歌加速器 - @subpackage 标签现已弃用。按以下方式使用 @package 标签:

@package [level 1]\[level 2]\[etc.]

查看 PHPDocumentor2 手册:http://www.phpdoc.org/docs/latest/for-users/phpdoc/tags/package.html

I know the question is quite old, but for any google speeders - @subpackage tags are now deprecated. Use @package tag instead in a following manner:

@package [level 1]\[level 2]\[etc.]

Check PHPDocumentor2 manual: http://www.phpdoc.org/docs/latest/for-users/phpdoc/tags/package.html

云淡风轻 2024-10-23 04:26:24

大多数生成器无法理解多个子包标签。惯例是使用下划线或连字符;或不分段低于 2 个级别(包/子包)

请参阅:http: //manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.subpackage.pkg.html

Most generators will not understand multiple subpackage tags. Convention is either to use underscores or hyphens; or not segmenting below 2 levels (package / subpackage)

See: http://manual.phpdoc.org/HTMLSmartyConverter/HandS/phpDocumentor/tutorial_tags.subpackage.pkg.html

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文