protected function setHeaderLine($type)
 {
     $this->types = EfrontExport::getTypes($type);
     if ($type == "users") {
         if (G_VERSIONTYPE == 'enterprise') {
             #cpp#ifdef ENTERPRISE
             $complete_user_info = array();
             foreach ($this->types as $column => $field) {
                 $complete_user_info[$column] = "users." . $field;
             }
             $hcd_user_info = EfrontImport::getTypes("employees");
             unset($hcd_user_info['users_login']);
             foreach ($hcd_user_info as $column => $field) {
                 $complete_user_info[$column] = "module_hcd_employees." . $field;
             }
             $this->types = $complete_user_info;
         }
         #cpp#endif
         unset($this->types['password']);
     }
     $this->lines[] = implode($this->separator, array_keys($this->types));
 }
 $uploadedFile = $filesystem->uploadFile('import_file');
 $options = array("replace_existing" => $replaceUsers, "date_format" => $importForm->exportValue('date_format'), "replace_assignments" => $importForm->exportValue('replace_assignments'));
 $importer = EfrontImportFactory::factory("csv", $uploadedFile, $options);
 $importType = $importForm->exportValue('import_type');
 if ($importType == "anything") {
     $import_types = $import_export_types;
     unset($import_types['anything']);
     if (G_VERSIONTYPE == 'enterprise') {
         #cpp#ifdef ENTERPRISE
         $import_types['employees'] = 1;
     }
     #cpp#endif
     $log = array("success" => array(), "failure" => array());
     foreach ($import_types as $import_type => $import_name) {
         $templog = $importer->import($import_type);
         $headerType = EfrontImport::getImportTypeName($import_type);
         if ($headerType) {
             $import_header = "<u>" . _IMPORTRESULTSFOR . " " . $headerType . "</u>";
             if (!empty($templog["success"])) {
                 array_unshift($templog["success"], $import_header);
             } else {
                 $templog["success"] = array($import_header);
             }
             $log["success"] = array_merge($log["success"], $templog["success"]);
             if (!empty($templog["failure"])) {
                 array_unshift($templog["failure"], $import_header);
             } else {
                 $templog["failure"] = array($import_header);
             }
             $log["failure"] = array_merge($log["failure"], $templog["failure"]);
         }