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;
51 $this->enclosure =
'"';
52 $this->
id =
'csvutf8';
53 $this->label =
'CSV UTF-8';
54 $this->desc = $langs->trans(
"CSVFormatDesc", $this->separator, $this->enclosure, $this->escape);
55 $this->extension =
'csv';
56 $this->picto =
'mime/other';
57 $this->version =
'1.32';
60 $this->label_lib =
'Dolibarr';
61 $this->version_lib = DOL_VERSION;
74 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
77 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
79 return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
92 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
96 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
97 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 utf-8.
write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
Output record line into file.
write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
Output title line into file.
__construct($db)
Constructor.