25require_once DOL_DOCUMENT_ROOT.
'/core/class/commondocgenerator.class.php';
38 public $driverlabel = array();
40 public $driverversion = array();
42 public $liblabel = array();
44 public $libversion = array();
56 dol_syslog(get_class($this).
"::listOfAvailableExportFormat");
58 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/export/";
59 $handle = opendir($dir);
63 if (is_resource($handle)) {
64 while (($file = readdir($handle)) !==
false) {
66 if (preg_match(
"/^export_(.*)\.modules\.php$/i", $file, $reg)) {
68 if ($moduleid ==
'csv') {
73 $file = $dir.
"export_".$moduleid.
".modules.php";
74 $classname =
"Export".ucfirst($moduleid);
77 if (class_exists($classname)) {
78 $module =
new $classname($db);
81 $this->picto[$module->id] = $module->picto;
83 $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ?
'' :
' __(Disabled)__');
84 $this->driverdesc[$module->id] = $module->getDriverDesc();
85 $this->driverversion[$module->id] = $module->getDriverVersion();
87 $this->liblabel[$module->id] = $module->getLibLabel();
88 $this->libversion[$module->id] = $module->getLibVersion();
96 asort($this->driverlabel);
98 return $this->driverlabel;
110 return $this->picto[$key];
121 return $this->driverlabel[$key];
132 return $this->driverdesc[$key];
143 return $this->driverversion[$key];
154 return $this->liblabel[$key];
165 return $this->libversion[$key];
Parent class for documents generators.
Parent class for export modules.
getDriverLabelForKey($key)
Return label of driver export.
getDriverVersionForKey($key)
Renvoi version d'un driver export.
getLibVersionForKey($key)
Return version of driver lib.
getDriverDescForKey($key)
Renvoi le descriptif d'un driver export.
listOfAvailableExportFormat($db, $maxfilenamelength=0)
Load into memory list of available export format.
getLibLabelForKey($key)
Renvoi label of driver lib.
getPictoForKey($key)
Return picto of export driver.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.