/** * common base class of all phpdoc classes (简述,用在索引列表中) * * as a kind of common base class phpdocobject holds * configuration values (e.g. error handling) and debugging * methods (e.g. introspection()). it does not have a constructor, * so you can always inheritig phpdoc classes from this * class without any trouble. (详细的功能描述) * * @author ulf wendel * @version $id: phpdocobject.php,v 1.3 2001/02/18 15:29:29 uw exp $ * @package phpdoc (文档标记) */ class phpdocobject { ..... }
以上的文档注释将会生成如下的文档: <b>phpdocobject</b>
phpdocobject
common base class of all phpdoc classes
<b>private class phpdocobject </b>
common base class of all phpdoc classes as a kind of common base class phpdocobject holdsconfiguration values (e.g. error handling) and debuggingmethods (e.g. introspection()). it does not have a constructor,so you can always inheritig phpdoc classes from thisclass without any trouble.
* @author night sailer <[email protected]> * @author lee tester <[email protected]> @brother (function()|$variable) 使用范围:class, function, var, define, module, use @sister (function()|$variable) 使用范围:class, function, var, define, module, use
其次,你要修改phpdoc目录下面的index.php文件: // directory with include files define("phpdoc_include_dir", "c:/www/apache/doc/");
将"c:/www/apache/doc/修改成你的phpdoc的目录 // important: set this to the linebreak sign of your system! define("linebreak", "/r/n"); 这是定义换行的标志,dos下面是换行+回车,unix下面只是回车就可以。
下面,为你的要生成文档的应用程序做一些定制工作: // sets the name of your application. // the name of the application is used e.g. as a page title $doc->setapplication("phpdoc");
setapplication()用来设置你的应用程序的名称,将phpdoc替换成你应用程序的名字。
// directory where your source files reside: $doc->setsourcedirectory(phpdoc_include_dir);