27require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
38 public $id =
'NOT IMPLEMENTED';
48 public $driverlabel = array();
53 public $driverdesc = array();
58 public $driverversion = array();
63 public $liblabel = array();
68 public $libversion = array();
121 dol_syslog(get_class($this).
"::listOfAvailableExportFormat");
123 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/export/";
124 $handle = opendir($dir);
128 if (is_resource($handle)) {
129 while (($file = readdir($handle)) !==
false) {
131 if (preg_match(
"/^export_(.*)\.modules\.php$/i", $file, $reg)) {
133 if ($moduleid ==
'csv') {
138 $file = $dir.
"export_".$moduleid.
".modules.php";
139 $classname =
"Export".ucfirst($moduleid);
142 if (class_exists($classname)) {
143 $module =
new $classname($db);
144 '@phan-var-force ModeleExports $module';
148 $this->pictos[$module->id] = $module->picto;
150 $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ?
'' :
' __(Disabled)__');
151 if (method_exists($module,
'getDriverLabelBis')) {
153 $labelBis = $module->getDriverLabelBis();
155 $this->driverlabel[$module->id] .=
' <span class="opacitymedium">('.$labelBis.
')</span>';
158 $this->driverdesc[$module->id] = $module->getDriverDesc();
159 $this->driverversion[$module->id] = $module->getDriverVersion();
161 $this->liblabel[$module->id] = $module->getLibLabel();
162 $this->libversion[$module->id] = $module->getLibVersion();
170 asort($this->driverlabel);
172 return $this->driverlabel;
184 return $this->pictos[$key];
195 return $this->driverlabel[$key];
206 return $this->driverdesc[$key];
217 return $this->driverversion[$key];
228 return $this->liblabel[$key];
240 return $this->libversion[$key];
253 public function write_record($array_selected_sorted, $objp, $outputlangs, $array_types)
256 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
270 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
273 return 'Not implemented';
283 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
286 return 'Not implemented';
296 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
299 return 'Not implemented';
309 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
312 return 'Not implemented';
322 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
325 return 'Not implemented';
335 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
338 return 'Not implemented';
352 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
368 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
384 public function write_title($array_export_fields_label, $array_selected_sorted, $outputlangs, $array_types)
387 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
402 $msg = get_class($this).
"::".__FUNCTION__.
" not implemented";
416 $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.