我可以使用两次“@subpackage”吗?对于 phpDocumentor?
例如,我有一个名为“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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我知道这个问题已经很老了,但对于任何谷歌加速器 -
@subpackage
标签现已弃用。按以下方式使用@package
标签:查看 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:Check PHPDocumentor2 manual: http://www.phpdoc.org/docs/latest/for-users/phpdoc/tags/package.html
大多数生成器无法理解多个子包标签。惯例是使用下划线或连字符;或不分段低于 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