Parents Parent in a PHP subclass
This is an open discussion with 3 replies, filed under Extensions.
Search
The following sounds similiar to your problem, might be worth a check: http://stackoverflow.com/questions/1557608/how-do-i-get-a-php-class-constructor-to-call-its-parents-parents-constructor
Field::displaySettingsPanel
should work
Thanks, eKoeS and brendo. Brendo's solution did the trick. I didn't know that.
Create an account or sign in to comment.
I'm developing the SelectBox Link Field Combo and I have a problem regarding superclass method calling.
As Nils suggested, to avoid code duplication, I'm extending the existent
fieldSelectBox_Link
class:so the type hierarchy will be
The problem is in
displaySettingsPanel
method from my class. I need to call thedisplaySettingsPanel
fromField
class to initialize the settings container or I end up with something like this (see attachments). Do you have any suggestions?As far as I know,
parent
will only work for ... parent :)Thank you.