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];