|
Re: [SMARTY] PHPDoc and Smarty: msg#00449php.smarty.general
Hi, The phpdoc looks pretty good :). There's a few changes to make it fully compliant. The spec is available at: http://www.phpdoc.org/docs/HTMLSmartyConverter/PHP/phpDocumentor/tutorial_ta gs.pkg.html First, tags should go after description, otherwise the description will be placed into the text of a tag. @param type $varname instead of @param $varname type otherwise, it is really quite beautiful :) If you're inspired, use the @var tag in the docblock of a var to specify the type as in: /** * @var string */ var $_config_path = ""; Also, it might be useful to use docblock templates as in: /**#@+ * @access private */ var $_config_path = ""; var $_config_data = array(); var $_separator = ""; /**#@-*/ This will block everything between the delimiters as having @access private. Can't wait for the next release :) Greg -- phpDocumentor http://www.phpdoc.org "Monte Ohrt" <monte@xxxxxxxx> wrote in message news:1043881995.30853.51.camel@xxxxxxxxxxxxxxxx > well that was a bigger task than first thought... > > The new comment format is committed, let me know what I messed up ;-) > > Monte > > On Tue, 2003-01-28 at 21:35, Greg Beaver wrote: > > Hello all, > > > > phpDocumentor (http://www.phpdoc.org) has made Smarty its primary template > > engine for generating output, which is working wonderfully. I was wondering > > if there are any plans to convert Smarty's comments into phpDocumentor-style > > comments, as this would be very convenient. The comments are fine, nothing > > need be changed except the delimiters to > > /** > > * > > */ > > instead of > > /*====*\ > > \*====*/ > > > > and possibly adding a few tags. > > > > This would make things easier for us here. > > > > Thanks, > > Greg > > -- > > phpDocumentor > > http://www.phpdoc.org > -- > Monte Ohrt <monte@xxxxxxxx> > -- Smarty Development Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | [SMARTY] Re: block.sendmail.php: 00449, Rasmus Schultz |
|---|---|
| Next by Date: | [SMARTY] rebuild_cache() - just a thought: 00449, Hoffman, Geoffrey |
| Previous by Thread: | Re: [SMARTY] PHPDoc and Smartyi: 00449, Monte Ohrt |
| Next by Thread: | [SMARTY] Delete all cached files for a template file: 00449, K. Ono |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |