26require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
37 public $id =
'NOT IMPLEMENTED';
47 public $driverlabel = array();
52 public $driverdesc = array();
57 public $driverversion = array();
62 public $liblabel = array();
67 public $libversion = array();
115 dol_syslog(get_class($this).
"::listOfAvailableExportFormat");
117 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/export/";
118 $handle = opendir($dir);
122 if (is_resource($handle)) {
123 while (($file = readdir($handle)) !==
false) {
125 if (preg_match(
"/^export_(.*)\.modules\.php$/i", $file, $reg)) {
127 if ($moduleid ==
'csv') {
132 $file = $dir.
"export_".$moduleid.
".modules.php";
133 $classname =
"Export".ucfirst($moduleid);
136 if (class_exists($classname)) {
137 $module =
new $classname($db);
138 '@phan-var-force ModeleExports $module';
142 $this->pictos[$module->id] = $module->picto;
144 $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ?
'' :
' __(Disabled)__');
145 if (method_exists($module,
'getDriverLabelBis')) {
147 $labelBis = $module->getDriverLabelBis();
149 $this->driverlabel[$module->id] .=
' <span class="opacitymedium">('.$labelBis.
')</span>';
152 $this->driverdesc[$module->id] = $module->getDriverDesc();
153 $this->driverversion[$module->id] = $module->getDriverVersion();
155 $this->liblabel[$module->id] = $module->getLibLabel();
156 $this->libversion[$module->id] = $module->getLibVersion();
164 asort($this->driverlabel);
166 return $this->driverlabel;
178 return $this->pictos[$key];
189 return $this->driverlabel[$key];
200 return $this->driverdesc[$key];
211 return $this->driverversion[$key];
222 return $this->liblabel[$key];
234 return $this->libversion[$key];
247 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
250 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
264 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
267 return 'Not implemented';
277 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
280 return 'Not implemented';
290 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
293 return 'Not implemented';
303 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
306 return 'Not implemented';
316 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
319 return 'Not implemented';
329 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
332 return 'Not implemented';
346 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
362 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
378 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
381 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
396 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
410 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
Parent class for documents (PDF, ODT, ...) generators.
Parent class for export modules.
getDriverLabel()
getDriverLabel
getDriverExtension()
getDriverExtension
getLibVersion()
getLibVersion
getDriverLabelForKey($key)
Return label of driver export.
getDriverVersion()
getDriverVersion
write_footer($outputlangs)
Write footer.
getDriverVersionForKey($key)
Renvoi version d'un driver export.
getLibVersionForKey($key)
Return version of driver lib.
write_header($outputlangs)
Write header.
open_file($file, $outputlangs)
Open output file.
getDriverDescForKey($key)
Renvoi le descriptif d'un driver export.
close_file()
Close Excel file.
listOfAvailableExportFormat($db, $maxfilenamelength=0)
Load into memory list of available export format.
write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
Output record line into file.
getLibLabelForKey($key)
Renvoi label of driver lib.
getPictoForKey($key)
Return picto of export driver.
write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
Output title line into file.
getDriverDesc()
getDriverDesc
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.