On Wed, 2003-07-02 at 03:06, George Schlossnagle wrote:
> I don't see how that could work with inherited methods....
You mean a constellation like this:
class Base {
public function inbase() {
}
}
class AParent extends Base {
}
class Child extends AParent {
}
$class= new Reflection_Class('child');
var_dump($class->getMethods());
exit;
? - works wonderfully and outputs:
array(1) {
[0]=>
&object(reflection_method)#2 (2) {
["name"]=>
string(6) "inbase"
["class"]=>
string(5) "child"
}
}
- Timm :)
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php