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();
58 dol_syslog(get_class($this).
"::liste_modeles");
60 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/export/";
61 $handle = opendir($dir);
65 if (is_resource($handle)) {
66 while (($file = readdir($handle)) !==
false) {
67 if (preg_match(
"/^export_(.*)\.modules\.php$/i", $file, $reg)) {
71 $file = $dir.
"export_".$moduleid.
".modules.php";
72 $classname =
"Export".ucfirst($moduleid);
75 if (class_exists($classname)) {
76 $module =
new $classname($db);
79 $this->picto[$module->id] = $module->picto;
81 $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ?
'' :
' __(Disabled)__');
82 $this->driverdesc[$module->id] = $module->getDriverDesc();
83 $this->driverversion[$module->id] = $module->getDriverVersion();
85 $this->liblabel[$module->id] = $module->getLibLabel();
86 $this->libversion[$module->id] = $module->getLibVersion();
94 asort($this->driverlabel);
96 return $this->driverlabel;
108 return $this->picto[$key];
119 return $this->driverlabel[$key];
130 return $this->driverdesc[$key];
141 return $this->driverversion[$key];
152 return $this->liblabel[$key];
163 return $this->libversion[$key];