Hi,
Yes, you can access functions in the parent which you have overloaded:
<?
class A {
function a() {
echo "Class A, function a";
}
}
class B extends A{
function a() {
echo "Class B, function a";
A::a(); // <-- this is the syntax
}
}
$test = new B;
$test->a();
?>
This should give you the idea.
SIDE NOTE: it is very interesting ... when I tested this before posting, is produced the ouput:
Class A, function aClass B, function aClass A, function a
which seems to indicate that the parent constructor was automatically called, which is not what the PHP manual states.
All the best,
Louis