/** * The actual call to the import XLS function * * @param array $params * @return array $response */ protected function actionImportXls($params) { $params['file'] = $_FILES['files']['tmp_name'][0]; $params['importType'] = 'Xls'; $summarylog = parent::actionImport($params); $response = $summarylog->getErrorsJson(); $response['successCount'] = $summarylog->getTotalSuccessful(); $response['totalCount'] = $summarylog->getTotal(); $response['success'] = true; return $response; }
/** * The actual call to the import CSV function * * @param array $params * @return array $response */ protected function actionImportCsv($params) { //allow weak passwords \GO::config()->password_validate = false; $summarylog = parent::actionImport($params); return $summarylog->getErrorsJson(); }