Re: Reflection API RFC
| From: | Andi Gutmans | Date: | Sun, 30 Mar 2003 03:13:56 +0000 |
| Subject: | Re: Reflection API RFC | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-492@lists.php.net to get a copy of this message | ||
At 04:34 PM 3/29/2003 -0500, Andrei Zmievski wrote:
On Sat, 29 Mar 2003, Timm Friebe wrote:I would keep it simple. I don't see much use in regexp and I think if needed this is something to be done in user-land. AndiI have the first draft of PHP 5 reflection API ready. You can find it at: http://www.gravitonic.com/software/php/reflection.txt Comments and suggestions are appreciated.* ClassType::getMethods([int flags]); I assume flags is a bitfield of private, public, protected, final and so on, defaulting to all of them? Something like that. I haven't finalized what kind of method searching will be available. Perhaps one of the flags will be REGEXP with a optional argument specifying the regexp to match method name against.