Discussion:
Friday morning madness.
Richard Quadling
2014-06-27 08:20:08 UTC
Permalink
Hi.

I've often wondered if there was a way to call the parent method in a
subclass without having to actually name the method. For me it always
seemed odd to call my parents by their name.

So, just found that this little gem works quite nicely!

parent::{__FUNCTION__}();

And judging from some Googling, I'm not the first to discover this!

Use it wisely folks.

And happy Friday everyone!
--
Richard Quadling
Twitter : @RQuadling
Loading...