Re: PHP5

From: Date: Thu, 03 Apr 2003 18:57:22 +0000
Subject: Re: PHP5
References: 1 2  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-599@lists.php.net to get a copy of this message
Hi, In phpDocumentor, we use @access protected, @final, and I think using @var in front of properties will be fine, as in: class php5 {
    /**
     * @var string
     */
    const property = 'hello';
} However, I'm not sure this is at all necessary, as 'hello' is obviously a string :). It should be noted that when version 2.0 of phpDocumentor appears with php 5 support, the @access tag will be completely ignored if php 5 parsing is specified, as private and protected will be language constructs. The same is true of @final. The documentor will make a distinction between properties and class variables so that the @var tag will be properly used. Personally I can't wait for php 5, auto-documenting will be MUCH easier. Greg Alexander Merz wrote:
l0t3k wrote:
with PHP5 around the corner, are there plans to change/enhance the docs to deal with the latest goodies. in particular i mean private/protected/public, final and properties.
As already noted, i working on integretation on such things for peardoc. protected and static could be added to the note section like 'static' currently. Properties should documented in peardoc like functions, i will figure out which docbook layout is the best. for the doc-comments: @access protected for methods/vars? @access final for methods? @property as alternative for @var?


« previous php.pear.doc (#599) next »