24require_once DOL_DOCUMENT_ROOT.
'/core/modules/export/exportcsv.class.php';
44 $this->separator =
',';
46 $this->separator = $conf->global->EXPORT_CSV_SEPARATOR_TO_USE;
50 $this->enclosure =
'"';
51 $this->
id =
'csvutf8';
52 $this->label =
'CSV UTF-8';
53 $this->desc = $langs->trans(
"CSVFormatDesc", $this->separator, $this->enclosure, $this->escape);
54 $this->extension =
'csv';
55 $this->picto =
'mime/other';
56 $this->version =
'1.32';
59 $this->label_lib =
'Dolibarr';
60 $this->version_lib = DOL_VERSION;
73 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
76 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
78 return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
91 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
95 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'UTF-8';
96 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.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.