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?
I think it should be getMethods() only which returns MethodTypes which in turn has invoke() and getName() methods.
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php