0

我有 phpdox 来生成我的 API 文档并且它可以工作,但我希望它排除一些目录(如 Zend 和 smarty)。在我的 phpdox.xml 中,收集器部分看起来像这样(它不起作用):

    <collector publiconly="false" backend="parser">
        <!--  @publiconly - Flag to disable/enable processing of non public methods and members -->
        <!--  @backend    - The collector back end to use, currently only shipping with 'parser' -->

        <!--  <include / exclude filter for filelist generator, mask must follow fnmatch() requirements  -->
        <include mask="*.php" />
        <exclude mask="Zend/*" />
        <exclude mask="smarty/*" />

        <!--  How to handle inheritance -->
        <inheritance resolve="true">
            <!--  @resolve - Flag to enable/disable resolving of inheritance -->

            <!--  You can define multiple (external) dependencies to be included -->
            <!--  <dependency  path="" -->
            <!--    @path  - path to a directory containing an index.xml for a dependency project -->
        </inheritance>

    </collector>

排除掩码有什么问题?

4

1 回答 1

4

自己找到的:

    <collector publiconly="false" backend="parser">
        <!--  @publiconly - Flag to disable/enable processing of non public methods and members -->
        <!--  @backend    - The collector backend to use, currently only shipping with 'parser' -->

        <!--  <include / exclude filter for filelist generator, mask must follow fnmatch() requirements  -->
        <include mask="*.php" />
        <exclude mask="**Zend**"/>
        <exclude mask="**smarty**"/>

        <!--  How to handle inheritance -->
        <inheritance resolve="true">
            <!--  @resolve - Flag to enable/disable resolving of inheritance -->

            <!--  You can define multiple (external) dependencies to be included -->
            <!--  <dependency  path="" -->
            <!--    @path  - path to a directory containing an index.xml for a dependency project -->
        </inheritance>

    </collector>

必须使用“**DIRNAME**”方法来执行此操作,请参见上面的代码。

于 2015-01-22T08:58:09.577 回答