_dfRelations = $this->getConfigArray('dfRelations'); return parent::init(); } protected function _initElements() { $this->_initBusinessInformationElements(); $this->_initSoleProprietorElements(); $this->_initBillingAddressElements(); $this->_initContactElements(); $this->_initMailingAddressElements(); //$this->addApplicationFileElement(); $this->_initPartners(); $this->_initBusinessReferences(); $this->addElement('header', 'headerQuestionnaire', ['label' => 'Background Questionnaire']); $this->_initQuestionnaireElements(); return $this; } protected function _prepareData($data = null) { $data = parent::_prepareData($data); $this->_initAddressData($data); return $data; } protected function _initAddressData(array &$data) { if (($addressType = $data['mailingAddress']['sameAs'])) { $data['mailingAddress'] = array_merge($data['mailingAddress'], $data[$addressType]); } return $this; } public function getValues($suppressArrayNotation = false) { $values = $this->getDfValues($suppressArrayNotation); $this->_initAddressData($values); return $values; } }