24require_once DOL_DOCUMENT_ROOT.
'/core/modules/export/exportcsv.class.php';
44 $this->separator =
',';
46 $this->separator = $conf->global->EXPORT_CSV_SEPARATOR_TO_USE;
49 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
52 $this->enclosure =
'"';
54 $this->label =
'CSV ISO-8859-1';
55 $this->desc = $langs->trans(
"CSVFormatDesc", $this->separator, $this->enclosure, $this->escape);
56 $this->extension =
'csv';
57 $this->picto =
'mime/other';
58 $this->version =
'1.32';
61 $this->label_lib =
'Dolibarr';
62 $this->version_lib = DOL_VERSION;
75 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
78 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
80 return parent::write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types);
93 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
96 $conf->global->EXPORT_CSV_FORCE_CHARSET =
'ISO-8859-1';
98 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.
getDolGlobalString($key, $default='')
Return dolibarr global constant string value.