_columns4ExportCsv) { $this->_columns4ExportCsv = array('added' => 'Submitted'); $fields = array_keys(Qs_Array::excludeKey($this->_getDataObj()->getTableMeta(), 'id', 'added', 'changed')); unset($fields[array_search('idReason', $fields)]); foreach ($fields as $field) { $this->_columns4ExportCsv[$field] = ucfirst(preg_replace('/([a-z])([A-Z])/', '$1 $2', $field)); } $this->_columns4ExportCsv['reasonTitle'] = 'Reason for Contact'; $this->_columns4ExportCsv['phone'] = 'Phone Number'; $this->_columns4ExportCsv['company'] = 'Company Name'; } return array( 'added' => $this->_columns4ExportCsv['added'], 'name' => $this->_columns4ExportCsv['name'], 'company' => $this->_columns4ExportCsv['company'], 'email' => $this->_columns4ExportCsv['email'], 'phone' => $this->_columns4ExportCsv['phone'], 'reasonTitle' => $this->_columns4ExportCsv['reasonTitle'], 'comments' => $this->_columns4ExportCsv['comments'] ); } protected function _getListOptions() { $options = parent::_getListOptions(); $options['hasReason'] = $this->getConfig('contactReasonEnabled', false); return $options; } }