24require_once DOL_DOCUMENT_ROOT.
'/core/modules/export/exportcsv.class.php';
45 $this->separator =
',';
46 if (!empty($conf->global->EXPORT_CSV_SEPARATOR_TO_USE)) {
47 $this->separator = $conf->global->EXPORT_CSV_SEPARATOR_TO_USE;
50 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
53 $this->enclosure =
'"';
55 $this->label =
'CSV ISO-8859-1';
56 $this->desc = $langs->trans(
"CSVFormatDesc", $this->separator, $this->enclosure, $this->escape);
57 $this->extension =
'csv';
58 $this->picto =
'mime/other';
59 $this->version =
'1.32';
62 $this->label_lib =
'Dolibarr';
63 $this->version_lib = DOL_VERSION;
76 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
79 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
81 return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
94 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
97 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
99 return parent::write_record($array_selected_sorted, $objp, $outputlangs, $array_types);
Class to build export files with format CSV.
Class to build export files with format CSV iso.
__construct($db)
Constructor.
write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
Output title line into file.
write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
Output record line into file.