function postProcess(&$params, &$db, &$form)
 {
     $file = $params['uploadFile']['name'];
     $result = self::_CsvToTable($db, $file, CRM_Utils_Array::value('skipColumnHeader', $params, FALSE), CRM_Utils_Array::value('import_table_name', $params), CRM_Utils_Array::value('fieldSeparator', $params, ','));
     $form->set('originalColHeader', CRM_Utils_Array::value('original_col_header', $result));
     $table = $result['import_table_name'];
     $importJob = new CRM_Import_ImportJob($table);
     $form->set('importTableName', $importJob->getTableName());
 }
Beispiel #2
0
 function postProcess(&$params, &$db)
 {
     $file = $params['uploadFile']['name'];
     $result = self::_CsvToTable($db, $file, $params['skipColumnHeader'], CRM_Utils_Array::value('import_table_name', $params));
     $this->set('originalColHeader', CRM_Utils_Array::value('original_col_header', $result));
     $table = $result['import_table_name'];
     require_once 'CRM/Import/ImportJob.php';
     $importJob = new CRM_Import_ImportJob($table);
     $this->set('importTableName', $importJob->getTableName());
 }
Beispiel #3
0
 public function postProcess(&$params, &$db)
 {
     require_once 'CRM/Import/ImportJob.php';
     $importJob = new CRM_Import_ImportJob(CRM_Utils_Array::value('import_table_name', $params), $params['sqlQuery'], true);
     $this->set('importTableName', $importJob->getTableName());
 }