From d5a3411fbc23e89a86985c461fd6124dfa0e8448 Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Thu, 20 Sep 2018 11:28:54 +0200 Subject: [PATCH] Standardize and update code --- htdocs/core/modules/export/export_csv.modules.php | 7 ++++++- htdocs/core/modules/export/export_excel.modules.php | 7 ++++++- htdocs/core/modules/export/export_excel2007.modules.php | 7 ++++++- htdocs/core/modules/export/export_tsv.modules.php | 7 ++++++- htdocs/core/modules/import/import_csv.modules.php | 7 ++++++- htdocs/core/modules/import/import_xlsx.modules.php | 7 ++++++- htdocs/core/modules/import/modules_import.php | 7 ++++++- 7 files changed, 42 insertions(+), 7 deletions(-) diff --git a/htdocs/core/modules/export/export_csv.modules.php b/htdocs/core/modules/export/export_csv.modules.php index c3dfc84f94c..e433d85d2ca 100644 --- a/htdocs/core/modules/export/export_csv.modules.php +++ b/htdocs/core/modules/export/export_csv.modules.php @@ -41,7 +41,12 @@ class ExportCsv extends ModeleExports public $label; public $extension; - public $version; + + /** + * Dolibarr version of the loaded document + * @public string + */ + public $version = 'dolibarr'; public $label_lib; public $version_lib; diff --git a/htdocs/core/modules/export/export_excel.modules.php b/htdocs/core/modules/export/export_excel.modules.php index 665a6925c6b..3711f5cfe54 100644 --- a/htdocs/core/modules/export/export_excel.modules.php +++ b/htdocs/core/modules/export/export_excel.modules.php @@ -43,7 +43,12 @@ class ExportExcel extends ModeleExports public $label; public $extension; - public $version; + + /** + * Dolibarr version of the loaded document + * @public string + */ + public $version = 'dolibarr'; public $label_lib; public $version_lib; diff --git a/htdocs/core/modules/export/export_excel2007.modules.php b/htdocs/core/modules/export/export_excel2007.modules.php index 74e35ff5b18..71885c37297 100644 --- a/htdocs/core/modules/export/export_excel2007.modules.php +++ b/htdocs/core/modules/export/export_excel2007.modules.php @@ -44,7 +44,12 @@ class ExportExcel2007 extends ExportExcel public $label; public $extension; - public $version; + + /** + * Dolibarr version of the loaded document + * @public string + */ + public $version = 'dolibarr'; public $label_lib; public $version_lib; diff --git a/htdocs/core/modules/export/export_tsv.modules.php b/htdocs/core/modules/export/export_tsv.modules.php index 4b57d5f7fcf..b8e8f5d0763 100644 --- a/htdocs/core/modules/export/export_tsv.modules.php +++ b/htdocs/core/modules/export/export_tsv.modules.php @@ -42,7 +42,12 @@ class ExportTsv extends ModeleExports public $label; public $extension; - public $version; + + /** + * Dolibarr version of the loaded document + * @public string + */ + public $version = 'dolibarr'; public $label_lib; public $version_lib; diff --git a/htdocs/core/modules/import/import_csv.modules.php b/htdocs/core/modules/import/import_csv.modules.php index 2b8d2825f75..03f727e8759 100644 --- a/htdocs/core/modules/import/import_csv.modules.php +++ b/htdocs/core/modules/import/import_csv.modules.php @@ -61,7 +61,12 @@ class ImportCsv extends ModeleImports public $label; public $extension; // Extension of files imported by driver - public $version; // Version of driver + + /** + * Dolibarr version of driver + * @public string + */ + public $version = 'dolibarr'; public $label_lib; // Label of external lib used by driver public $version_lib; // Version of external lib used by driver diff --git a/htdocs/core/modules/import/import_xlsx.modules.php b/htdocs/core/modules/import/import_xlsx.modules.php index 31f09a7893f..e79ef688782 100644 --- a/htdocs/core/modules/import/import_xlsx.modules.php +++ b/htdocs/core/modules/import/import_xlsx.modules.php @@ -61,7 +61,12 @@ class ImportXlsx extends ModeleImports public $label; public $extension; // Extension of files imported by driver - public $version; // Version of driver + + /** + * Dolibarr version of driver + * @public string + */ + public $version = 'dolibarr'; public $label_lib; // Label of external lib used by driver public $version_lib; // Version of external lib used by driver diff --git a/htdocs/core/modules/import/modules_import.php b/htdocs/core/modules/import/modules_import.php index a5d73031b7a..b69ea8dcf7c 100644 --- a/htdocs/core/modules/import/modules_import.php +++ b/htdocs/core/modules/import/modules_import.php @@ -50,7 +50,12 @@ class ModeleImports public $label; public $extension; // Extension of files imported by driver - public $version; // Version of driver + + /** + * Dolibarr version of driver + * @public string + */ + public $version = 'dolibarr'; public $label_lib; // Label of external lib used by driver public $version_lib; // Version of external lib used by driver