Standardize and update code
This commit is contained in:
parent
b7a4311802
commit
7eda9c846c
@ -41,7 +41,17 @@ class mod_holiday_immaculate extends ModelNumRefHolidays
|
||||
*/
|
||||
public $error = '';
|
||||
|
||||
public $nom = 'Immaculate';
|
||||
/**
|
||||
* @var string Nom du modele
|
||||
* @deprecated
|
||||
* @see name
|
||||
*/
|
||||
public $nom='Immaculate';
|
||||
|
||||
/**
|
||||
* @var string model name
|
||||
*/
|
||||
public $name='Immaculate';
|
||||
|
||||
public $code_auto=1;
|
||||
|
||||
|
||||
@ -42,8 +42,18 @@ class mod_holiday_madonna extends ModelNumRefHolidays
|
||||
*/
|
||||
public $error='';
|
||||
|
||||
/**
|
||||
* @var string Nom du modele
|
||||
* @deprecated
|
||||
* @see name
|
||||
*/
|
||||
public $nom='Madonna';
|
||||
|
||||
/**
|
||||
* @var string model name
|
||||
*/
|
||||
public $name='Madonna';
|
||||
|
||||
public $code_auto=1;
|
||||
|
||||
|
||||
|
||||
@ -38,7 +38,7 @@ class ImportCsv extends ModeleImports
|
||||
*/
|
||||
public $db;
|
||||
|
||||
var $datatoimport;
|
||||
public $datatoimport;
|
||||
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
@ -69,17 +69,21 @@ class ImportCsv extends ModeleImports
|
||||
public $version = 'dolibarr';
|
||||
|
||||
public $label_lib; // Label of external lib used by driver
|
||||
|
||||
public $version_lib; // Version of external lib used by driver
|
||||
|
||||
public $separator;
|
||||
|
||||
public $file; // Path of file
|
||||
|
||||
public $handle; // Handle fichier
|
||||
|
||||
public $cacheconvert=array(); // Array to cache list of value found after a convertion
|
||||
|
||||
public $cachefieldtable=array(); // Array to cache list of value found into fields@tables
|
||||
|
||||
public $nbinsert = 0; // # of insert done during the import
|
||||
|
||||
public $nbupdate = 0; // # of update done during the import
|
||||
|
||||
|
||||
@ -91,7 +95,7 @@ class ImportCsv extends ModeleImports
|
||||
*/
|
||||
function __construct($db,$datatoimport)
|
||||
{
|
||||
global $conf,$langs;
|
||||
global $conf, $langs;
|
||||
$this->db = $db;
|
||||
|
||||
$this->separator=(GETPOST('separator')?GETPOST('separator'):(empty($conf->global->IMPORT_CSV_SEPARATOR_TO_USE)?',':$conf->global->IMPORT_CSV_SEPARATOR_TO_USE));
|
||||
|
||||
@ -69,18 +69,23 @@ class ImportXlsx extends ModeleImports
|
||||
public $version = 'dolibarr';
|
||||
|
||||
public $label_lib; // Label of external lib used by driver
|
||||
|
||||
public $version_lib; // Version of external lib used by driver
|
||||
|
||||
public $separator;
|
||||
|
||||
public $file; // Path of file
|
||||
|
||||
public $handle; // Handle fichier
|
||||
|
||||
public $cacheconvert=array(); // Array to cache list of value found after a convertion
|
||||
|
||||
public $cachefieldtable=array(); // Array to cache list of value found into fields@tables
|
||||
|
||||
public $workbook; // temporary import file
|
||||
|
||||
public $record; // current record
|
||||
|
||||
public $headers;
|
||||
|
||||
|
||||
|
||||
@ -37,7 +37,10 @@ class ModeleImports
|
||||
|
||||
public $datatoimport;
|
||||
|
||||
public $error='';
|
||||
/**
|
||||
* @var string Error code (or message)
|
||||
*/
|
||||
public $error='';
|
||||
|
||||
/**
|
||||
* @var int id of driver
|
||||
@ -58,14 +61,18 @@ class ModeleImports
|
||||
public $version = 'dolibarr';
|
||||
|
||||
public $label_lib; // Label of external lib used by driver
|
||||
|
||||
public $version_lib; // Version of external lib used by driver
|
||||
|
||||
// Array of all drivers
|
||||
public $driverlabel=array();
|
||||
|
||||
public $driverdesc=array();
|
||||
|
||||
public $driverversion=array();
|
||||
|
||||
public $liblabel=array();
|
||||
|
||||
public $libversion=array();
|
||||
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user