Search

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:

Class fieldSelectBox_Link_Combo extends fieldSelectBox_Link{

so the type hierarchy will be

Field -> fieldSelectBox_Link -> fieldSelectBox_Link_Combo

The problem is in displaySettingsPanel method from my class. I need to call the displaySettingsPanel from Field 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.

Attachments:
SBLC_good.png and SBLC_bad.png

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.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details