25 require_once DOL_DOCUMENT_ROOT.
'/core/lib/functions.lib.php';
61 public $version =
'dolibarr';
68 public $driverlabel = array();
70 public $driverdesc = array();
72 public $driverversion = array();
74 public $liblabel = array();
76 public $libversion = array();
124 return $this->extension;
134 return $this->version;
144 return $this->label_lib;
154 return $this->version_lib;
169 dol_syslog(get_class($this).
"::liste_modeles");
171 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/import/";
172 $handle = opendir($dir);
176 if (is_resource($handle)) {
177 while (($file = readdir($handle)) !==
false) {
178 if (preg_match(
"/^import_(.*)\.modules\.php/i", $file, $reg)) {
182 $file = $dir.
"/import_".$moduleid.
".modules.php";
183 $classname =
"Import".ucfirst($moduleid);
186 $module =
new $classname($db,
'');
189 $this->picto[$module->id] = $module->picto;
191 $this->driverlabel[$module->id] = $module->getDriverLabel(
'');
192 $this->driverdesc[$module->id] = $module->getDriverDesc(
'');
193 $this->driverversion[$module->id] = $module->getDriverVersion(
'');
195 $this->liblabel[$module->id] = $module->getLibLabel(
'');
196 $this->libversion[$module->id] = $module->getLibVersion(
'');
203 return array_keys($this->driverlabel);
215 return $this->picto[$key];
226 return $this->driverlabel[$key];
237 return $this->driverdesc[$key];
248 return $this->driverversion[$key];
259 return $this->liblabel[$key];
270 return $this->libversion[$key];