$this->_dataValues = $this->get('dataValues');
$this->assign('dataValues', $this->_dataValues);
- $skipColumnHeader = $this->controller->exportValue('UploadFile', 'skipColumnHeader');
+ $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
$this->_onDuplicate = $this->get('onDuplicate', isset($onDuplicate) ? $onDuplicate : "");
if ($skipColumnHeader) {
return;
}
- $fileName = $this->controller->exportValue('UploadFile', 'uploadFile');
- $skipColumnHeader = $this->controller->exportValue('UploadFile', 'skipColumnHeader');
+ $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+ $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
$config = CRM_Core_Config::singleton();
$seperator = $config->fieldSeparator;
* @access public
*/
public function preProcess() {
- $skipColumnHeader = $this->controller->exportValue('UploadFile', 'skipColumnHeader');
+ $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
//get the data from the session
$dataValues = $this->get('dataValues');
* @access public
*/
public function postProcess() {
- $fileName = $this->controller->exportValue('UploadFile', 'uploadFile');
- $skipColumnHeader = $this->controller->exportValue('UploadFile', 'skipColumnHeader');
+ $fileName = $this->controller->exportValue('DataSource', 'uploadFile');
+ $skipColumnHeader = $this->controller->exportValue('DataSource', 'skipColumnHeader');
$invalidRowCount = $this->get('invalidRowCount');
$conflictRowCount = $this->get('conflictRowCount');
$onDuplicate = $this->get('onDuplicate');
fclose($fd);
}
- function errorFileName($type) {
+ static function errorFileName($type) {
$fileName = NULL;
if (empty($type)) {
return $fileName;
return $fileName;
}
- function saveFileName($type) {
+ static function saveFileName($type) {
$fileName = NULL;
if (empty($type)) {
return $fileName;