RE: [PHP] Parent Object

2007-08-01 Thread Edward Kay
> -Original Message- > From: Ralph Kutschera [mailto:[EMAIL PROTECTED] > Sent: 01 August 2007 13:19 > To: php-general@lists.php.net > Subject: [PHP] Parent Object > > > Hallo! > > class A { > ... > } > > class B extends A { > ... >

[PHP] Parent Object

2007-08-01 Thread Ralph Kutschera
Hallo! class A { ... } class B extends A { ... $name = get_parent_class($this); // would be "A" ... } This is *not* what I want! class B { ... $name = get_parent_class2($this); // should give "A" ... } class A { ... $b = new B(); ... } This *is* what I want! How can i res