25 require_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) {
65 if (preg_match(
"/^export_(.*)\.modules\.php$/i", $file, $reg)) {
69 $file = $dir.
"export_".$moduleid.
".modules.php";
70 $classname =
"Export".ucfirst($moduleid);
73 if (class_exists($classname)) {
74 $module =
new $classname($db);
77 $this->picto[$module->id] = $module->picto;
79 $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ?
'' :
' __(Disabled)__');
80 $this->driverdesc[$module->id] = $module->getDriverDesc();
81 $this->driverversion[$module->id] = $module->getDriverVersion();
83 $this->liblabel[$module->id] = $module->getLibLabel();
84 $this->libversion[$module->id] = $module->getLibVersion();
92 asort($this->driverlabel);
94 return $this->driverlabel;
106 return $this->picto[$key];
117 return $this->driverlabel[$key];
128 return $this->driverdesc[$key];
139 return $this->driverversion[$key];
150 return $this->liblabel[$key];
161 return $this->libversion[$key];
Parent class for documents generators.
Parent class for export modules.
getDriverLabelForKey($key)
Renvoi libelle d'un driver export.
getDriverVersionForKey($key)
Renvoi version d'un driver export.
getLibVersionForKey($key)
Renvoi version de librairie externe du driver.
getDriverDescForKey($key)
Renvoi le descriptif d'un driver export.
listOfAvailableExportFormat($db, $maxfilenamelength=0)
Load into memory list of available export format.
getLibLabelForKey($key)
Renvoi libelle de librairie externe du driver.
getPictoForKey($key)
Return picto of export driver.
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.