Stefan Varga wrote:
Hi,

I searched thru the documentation and can not find a way to call a
object's parent's parent method. I do not want to call the direct
parent method. Let me demonstrate on an example.

class A {
   function show() {
         echo "A";
         general handling
   }
}

class B extends A {
  function show() {
         echo "B";
         special handling for B;
         parent::show();
  }
}

class C extends B {
  function show() {
         echo "C";
         special handling C;
         parent::parent::show();
  }
}

The call parent::parent::show(); in C does not work.



Please, ask support questions at one of the available mailinglists:
http://www.php.net/mailing-lists.php

Friedhelm

Reply via email to