phpdocumentator2,phpdoc,不会解析内联链接

时间:2013-07-24 11:41:10

标签: phpdoc phpdocumentor2

我在尝试使用phpDocumentor version 2.0.0a12为工作方法获取内联标记时遇到问题。使用下面的示例代码,无论我在{@link parameter}中尝试什么(例如/ global / foo :: bar(),foo :: bar,foo :: bar()等),每次都会打印出文本,而不是解析为html锚标记。

还有其他人看到这个吗?

<?php
/**
 * File docblock thingy
 */

/**
 * Class docblock thingy
 */
class foo{

    /**
     * Description for bar {@link http://google.ie click for google} this is the inline link
     * @return boolean Default true
     */
    public function bar(){
        return true;
    }

    /**
     * Description for baz {@link foo::bar()}
     * @return boolean Default false
     */
    public function baz(){
        return false;
    }

}

也许我错过了配置参数?上面使用的配置是:

<?xml version="1.0" encoding="UTF-8" ?>
<phpdoc>
  <parser>
    <target>.</target>
    <default-package-name>Foo</default-package-name>
    <parseprivate>on</parseprivate>
  </parser>

  <transformer>
    <target>docs</target>
  </transformer>
  <files>
    <directory>.</directory>
  </files>
</phpdoc>

这可以被视为PHPDoc inline {@link} (and Netbeans)的副本,但我不这么认为,因为我从命令行调用phpdoc(不使用和IDE)。 任何帮助都非常感谢;)

1 个答案:

答案 0 :(得分:2)