phpdoc - Generate PHP Documentation for different access levels -
i'm working in php project needs generate 3 or more documentations, ones more restrictive others. documentation, use phpdocumentor 2. way i've found 2 level of documentation, using @internal
tag , --parseprivate option (for generate private documentation).
is posible generate third documentation intermediate restriction level?
i've tried @access
tag --visibility, doesn't work in version 2 of phpdocumentor. or @ignore
tag, didn't found way generate third documentation code setted tag.
the @access
tag defunct php4 tag, use before actual visibility keywords added php5. phpdocumentor 1.x recognize tags, if keywords in code, tags ignored. 2.x doesn't bother tags anymore.
"intermediate level" rather arbitrary description. 3 "levels" here need particular requirements spelled out, , best managed 3 different phpdoc.xml
configuration files.
here's example of how might describe 3 levels of docs, , how i'd accomplish them.
api-level: i'd use file-based argument document interfaces. if @api
tag used in docblocks denote actual individual pieces of public api, rely on those. however, think presentation of info in documentation highlighting sidebar, whereas approach of documenting interfaces means whole document solely defined interfaces (which presume "the api").
app-level: i'd capture classes, go default behavior of showing public visibility components.
dev-level: i'd use --parseprivate show components. tend put developer-targeted information @internal
tags myself.
again, i'd use customized phpdoc.xml
config files each of these, definitions committed version control.
Comments
Post a Comment