addColumn('no', 'no') ->addColumn( 'date', 'added', array( 'title' => 'Submitted', 'orderBy' => 'added', 'format' => '%m/%d/%Y %I:%M %p', 'attribs' => array('width' => 135) ) ) ->addColumn('text', 'name', array('attribs' => array('width' => 250), 'orderBy' => 'name')) ->addColumn( 'text', 'email', array( 'title' => 'E-mail', 'orderBy' => 'emailOrPhone', 'attribs' => array('width' => 300) ) ) ->addColumn('options', 'options', array('actions' => 'view; delete')); } protected function _getColumns4ExportCsv() { if (null === $this->_columns4ExportCsv) { $this->_columns4ExportCsv = array('added' => 'Submitted'); $fields = array_keys(Qs_Array::excludeKey($this->dataObj->table->getMetaData(), 'id', 'added', 'changed')); foreach ($fields as $field) { $this->_columns4ExportCsv[$field] = ucfirst(preg_replace('/([a-z])([A-Z])/', '$1 $2', $field)); } } return $this->_columns4ExportCsv; } }