Re: Reflection API RFC
| From: | Andrei Zmievski | Date: | Sun, 30 Mar 2003 15:42:18 +0000 |
| Subject: | Re: Reflection API RFC | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-494@lists.php.net to get a copy of this message | ||
On Sun, 30 Mar 2003, Andi Gutmans wrote:
> >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.
>
> 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.
Okay. One issue that I'm struggling with, though, is whether to roll the
functionality of Zend built-in functions, such get_class(),
get_class_methods(), etc, into the reflection API. Those function return
simple strings or arrays and most of the time that is enough. Do you
think we should have both ways of obtaining information in the new
reflection API, getMethods() that will return an array of MethodTypes
and something like getMethodsSimple() that will do what get_methods()
does?
-Andrei http://www.gravitonic.com/
* Anything will fit if you push hard enough. *