_dfRelations = $this->getConfigArray('dfRelations'); return parent::init(); } protected function _initElements() { $this->_initBusinessInformationElements(); $this->getElement('preferredVendorCode')->setRequired($this->isElementRequired('preferredVendorCode')); $this->_initSoleProprietorElements(); $this->_initBillingAddressElements(); $this->_initContactElements(); $this->_initMailingAddressElements(); //$this->_initUploadElements(); /* $this->wrap('dbaName', 'billingAddress', [ ['HtmlTag', ['tag' => 'dl', 'class' => 'span6']], ], 'leftColumn'); $this->wrap('mailingAddressHeader', 'websiteUrl', [ ['HtmlTag', ['tag' => 'dl', 'class' => 'span6']], ], 'rightColumn'); $this->wrap('leftColumn', 'rightColumn', [ ['DtDdWrapper', ['ddAttribs' => ['id' => 'top-columns', 'class' => 'row-fluid']]] ]); */ $this->_initPartners(); $this->_initBusinessReferences(); 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; } public function addButtons() { return $this->addStepButtons(); } }