Re: phpDocumentator
| From: | Greg Beaver | Date: | Mon, 26 May 2003 00:32:34 +0000 |
| Subject: | Re: phpDocumentator | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-850@lists.php.net to get a copy of this message | ||
Alexander Merz wrote:
The PEARDoc2 output of phpDocu is really good!
Some small template bugs:
- void is rendered as <void /> but this is no tag.
- <variablelistentry> must be <varlistentry>
- an structure of var list is
<variablelist>
<varlistentry>
<term>...</term>
<listitem>...</listitem>
</varlistentry>
<varlistentry>
<term>....
</varlistentry>
</variablelist>
Hi,
Thanks for these catches, I fixed them in CVS
- why is &type.XXXX; attribut not finished?I don't follow you?
Some problems while running over MP3/Id.php (in CVS)
- a private method is renderedNote that about 90% of the documentation comments in MP3_Id.php are in the wrong format (which is why they don't work) Example:
/*
* read a ID3 v1 or v1.1 tag from a file
*
* $file should be the path to the mp3 to look for a tag.
* When in doubt use the full path.
*
* @return mixed PEAR_Error if fails
*/
function _read_v1() {
if ($this->debug) print($this->debugbeg . "_read_v1()<HR>\n");
if (! ($f = @fopen($this->file, 'rb')) ) {
// $this->error = 'Unable to open ' . $file;
return new PEAR_Error( "Unable to open " . $file);
}
It must be /** not /*.
In addition, there is no @access private tag, and you must use the --pear on command-line option if you want phpDocumentor to assume methods that start with _ are private
- tons of mysterious messages about a wrong @package descriptionThis is well-documented, and not mysterious at all :). phpDocumentor expects a page-level DocBlock to have a @package tag. You can read all about it in the FAQ. Glad it's starting to approach maturity :). When someone gets around to fixing the release process at pear.php.net (it STILL doesn't work), I will upload the release. Regards, Greg