Re: [Zend Engine 2] More work on reflection API
| From: | Timm Friebe | Date: | Wed, 02 Jul 2003 01:13:03 +0000 |
| Subject: | Re: [Zend Engine 2] More work on reflection API | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-3153@lists.php.net to get a copy of this message | ||
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 :)