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;
167 dol_syslog(get_class($this).
"::listOfAvailableImportFormat");
169 $dir = DOL_DOCUMENT_ROOT.
"/core/modules/import/";
170 $handle = opendir($dir);
174 if (is_resource($handle)) {
175 while (($file = readdir($handle)) !==
false) {
176 if (preg_match(
"/^import_(.*)\.modules\.php/i", $file, $reg)) {
180 $file = $dir.
"/import_".$moduleid.
".modules.php";
181 $classname =
"Import".ucfirst($moduleid);
184 $module =
new $classname($db,
'');
187 $this->picto[$module->id] = $module->picto;
189 $this->driverlabel[$module->id] = $module->getDriverLabel(
'');
190 $this->driverdesc[$module->id] = $module->getDriverDesc(
'');
191 $this->driverversion[$module->id] = $module->getDriverVersion(
'');
193 $this->liblabel[$module->id] = $module->getLibLabel(
'');
194 $this->libversion[$module->id] = $module->getLibVersion(
'');
201 return array_keys($this->driverlabel);
213 return $this->picto[$key];
224 return $this->driverlabel[$key];
235 return $this->driverdesc[$key];
246 return $this->driverversion[$key];
257 return $this->liblabel[$key];
268 return $this->libversion[$key];
Parent class for import file readers.
getLibVersionForKey($key)
Renvoi version de librairie externe du driver.
getDriverDescForKey($key)
Renvoi la description d'un driver import.
getDriverLabelForKey($key)
Renvoi libelle d'un driver import.
getLibLabel()
getDriverLabel
getDriverVersionForKey($key)
Renvoi version d'un driver import.
getDriverLabel()
getDriverLabel
getPictoForKey($key)
Return picto of import driver.
getLibLabelForKey($key)
Renvoi libelle de librairie externe du driver.
getDriverVersion()
getDriverVersion
listOfAvailableImportFormat($db, $maxfilenamelength=0)
Load into memory list of available import format.
getDriverExtension()
getDriverExtension
getLibVersion()
getLibVersion
__construct()
Constructor.
getDriverDesc()
getDriverDesc
dol_syslog($message, $level=LOG_INFO, $ident=0, $suffixinfilename='', $restricttologhandler='', $logcontext=null)
Write log message into outputs.