public function __get($key) { if ($key === 'type' && $this->arrConfiguration[$key] === 'rocksolid_antispam') { // Improves compatibility with other contao extensions return 'captcha'; } return parent::__get($key); }
/** * Parse the template file and return it as string * @param array * @return string */ public function parse($arrAttributes = null) { if ($this->formcontrol_template) { $this->strTemplate = $this->formcontrol_template; if ($this->strQuestion == '') { $this->setQuestion(); } } return parent::parse($arrAttributes); }