[PEPr] Comment on PHP::PHP_Callback
| From: | Travis Swicegood | Date: | Tue, 08 May 2007 14:39:14 +0000 |
| Subject: | [PEPr] Comment on PHP::PHP_Callback | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46666@lists.php.net to get a copy of this message | ||
Travis Swicegood (http://pear.php.net/user/tswicegood) has commented on the proposal for
PHP::PHP_Callback.
Comment:
That's actually a really good idea, Alexey. I can use __call() to provide
access to all of those methods with practically no overhead (just parsing
of __call()) unless they use any of those methods.
One thing is figuring out how to document them. phpDocumentor >= 1.4 has
a new @method call, but unfortunately it just adds a new list item to the
class summary, not a full fledged method declaration to the documentation.
The only thing I can come up with is including a note at the class docblock
level that notes that if isFunction() is true, all of the
ReflectionFunction methods are available, otherwise all of the
ReflectionMethod methods are available.
Any thoughts?
Proposal information:
http://pear.php.net/pepr/pepr-proposal-show.php?id=482
--
Sent by PEPr, the automatic proposal system at http://pear.php.net