News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Greg Beaver's Blog:
phpDocumentor and __get/__set/__call - give us your ideas (RFC)
July 14, 2006 @ 06:06:00

In his latest post today, Greg Beaver is also taking a look at phpDocumentor and some of the documentation methods it allows, noting that providing the right notes on the "magic" functions has always been a point of difficulty.

One of the trickier feature requests for phpDocumentor has been documenting "magic" object properties and methods. By "magic" I am referring to properties and methods that are created dynamically by PHP 5.0+ userspace class methods __get, __set, __isset, __unset and __call.

He gives a code example of creating properties and a magic function (borp). To illustrate his point, he tries to specify the phpDocumentor format that would go with it - not an exact match, but with the help o ffour new tags it's made easier: @property, @property-read, @property-write, and @method.

0 comments voice your opinion now!
phpdocumentor __get __set __call ideas magic functions property phpdocumentor __get __set __call ideas magic functions property


blog comments powered by Disqus

Similar Posts

Shawn Stratton's Blog: Accesors and Religion

Clay Loveless' Blog: TextMate and phpDoc Comment Blocks

Greg Beaver's Blog: phpDocumentor and __get/__set/__call - give us your ideas (RFC)

Greg Beaver's Blog: PhpDocumentor 1.3.1 is released

PHPClasses.org: Lately in PHP Episode 15 - PHP 5.3.8 Upgrade, PHP 5.4 beta, Wrong Ideas About PHP


Community Events





Don't see your event here?
Let us know!


release podcast api application community wordpress developer series threedevsandamaybe configure list project library laravel bugfix introduction interview language framework code

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework