From 0d10722a7fc48efce5e1bcec6ce5e83fe4ab63ef Mon Sep 17 00:00:00 2001 From: Philippe GRAND Date: Tue, 10 Jul 2018 14:57:23 +0200 Subject: [PATCH] Docs : Update and complete --- htdocs/core/modules/modSociete.class.php | 7 +++++-- htdocs/core/modules/modStock.class.php | 7 +++++-- htdocs/core/modules/modStripe.class.php | 3 ++- .../core/modules/modSupplierProposal.class.php | 16 +++++++++++----- htdocs/core/modules/modSyslog.class.php | 7 +++++-- htdocs/core/modules/modTax.class.php | 8 +++++--- 6 files changed, 33 insertions(+), 15 deletions(-) diff --git a/htdocs/core/modules/modSociete.class.php b/htdocs/core/modules/modSociete.class.php index 9d9c0268e2d..5b40ea235a6 100644 --- a/htdocs/core/modules/modSociete.class.php +++ b/htdocs/core/modules/modSociete.class.php @@ -66,8 +66,11 @@ class modSociete extends DolibarrModules $this->dirs = array("/societe/temp"); // Dependencies - $this->depends = array(); - $this->requiredby = array("modExpedition","modFacture","modFournisseur","modFicheinter","modPropale","modContrat","modCommande"); + $this->hidden = false; // A condition to hide module + $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled + $this->requiredby = array("modExpedition","modFacture","modFournisseur","modFicheinter","modPropale","modContrat","modCommande"); // List of module ids to disable if this one is disabled + $this->conflictwith = array(); // List of module class names as string this module is in conflict with + $this->phpmin = array(5,4); // Minimum version of PHP required by module $this->langfiles = array("companies",'bills'); // Constants diff --git a/htdocs/core/modules/modStock.class.php b/htdocs/core/modules/modStock.class.php index ff767dd3658..9622e087699 100644 --- a/htdocs/core/modules/modStock.class.php +++ b/htdocs/core/modules/modStock.class.php @@ -65,8 +65,11 @@ class modStock extends DolibarrModules $this->config_page_url = array("stock.php"); // Dependencies - $this->depends = array("modProduct"); - $this->requiredby = array("modProductBatch"); + $this->hidden = false; // A condition to hide module + $this->depends = array("modProduct"); // List of module class names as string that must be enabled if this module is enabled + $this->requiredby = array("modProductBatch"); // List of module ids to disable if this one is disabled + $this->conflictwith = array(); // List of module class names as string this module is in conflict with + $this->phpmin = array(5,4); // Minimum version of PHP required by module $this->langfiles = array("stocks"); // Constants diff --git a/htdocs/core/modules/modStripe.class.php b/htdocs/core/modules/modStripe.class.php index e5b481f4daa..1f6f1e92f05 100644 --- a/htdocs/core/modules/modStripe.class.php +++ b/htdocs/core/modules/modStripe.class.php @@ -65,10 +65,11 @@ class modStripe extends DolibarrModules // Data directories to create when module is enabled. $this->dirs = array(); - // Config pages. Put here list of php page names stored in admmin directory used to setup module. + // Config pages. Put here list of php page names stored in admin directory used to setup module. $this->config_page_url = array("stripe.php@stripe"); // Dependencies + $this->hidden = false; // A condition to hide module $this->depends = array(); // List of modules id that must be enabled if this module is enabled $this->requiredby = array(); // List of modules id to disable if this one is disabled $this->phpmin = array(5,4); // Minimum version of PHP required by module diff --git a/htdocs/core/modules/modSupplierProposal.class.php b/htdocs/core/modules/modSupplierProposal.class.php index fa7553fd6df..bb3cda6a837 100644 --- a/htdocs/core/modules/modSupplierProposal.class.php +++ b/htdocs/core/modules/modSupplierProposal.class.php @@ -57,13 +57,19 @@ class modSupplierProposal extends DolibarrModules $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->picto='supplier_proposal'; - + + // Data directories to create when module is enabled. $this->dirs = array(); + + // Config pages. Put here list of php page names stored in admin directory used to setup module. + $this->config_page_url = array("supplier_proposal.php"); - // Dependancies - $this->depends = array('modFournisseur'); - $this->requiredby = array(); - $this->config_page_url = array("supplier_proposal.php"); + // Dependencies + $this->hidden = false; // A condition to hide module + $this->depends = array('modFournisseur'); // List of module class names as string that must be enabled if this module is enabled + $this->requiredby = array(); // List of module ids to disable if this one is disabled + $this->conflictwith = array(); // List of module class names as string this module is in conflict with + $this->phpmin = array(5,4); // Minimum version of PHP required by module $this->langfiles = array("supplier_proposal"); // Constants diff --git a/htdocs/core/modules/modSyslog.class.php b/htdocs/core/modules/modSyslog.class.php index fca192f5ec0..0274eeb2e63 100644 --- a/htdocs/core/modules/modSyslog.class.php +++ b/htdocs/core/modules/modSyslog.class.php @@ -67,8 +67,11 @@ class modSyslog extends DolibarrModules $this->config_page_url = array("syslog.php"); // Dependencies - $this->depends = array(); - $this->requiredby = array(); + $this->hidden = false; // A condition to hide module + $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled + $this->requiredby = array(); // List of module ids to disable if this one is disabled + $this->conflictwith = array(); // List of module class names as string this module is in conflict with + $this->phpmin = array(5,4); // Minimum version of PHP required by module // Constants $this->const = array(); diff --git a/htdocs/core/modules/modTax.class.php b/htdocs/core/modules/modTax.class.php index f3fa7d4e9db..e3b49bba016 100644 --- a/htdocs/core/modules/modTax.class.php +++ b/htdocs/core/modules/modTax.class.php @@ -67,9 +67,11 @@ class modTax extends DolibarrModules $this->config_page_url = array("taxes.php"); // Dependencies - $this->depends = array(); - $this->requiredby = array(); - $this->conflictwith = array(); + $this->hidden = false; // A condition to hide module + $this->depends = array(); // List of module class names as string that must be enabled if this module is enabled + $this->requiredby = array(); // List of module ids to disable if this one is disabled + $this->conflictwith = array(); // List of module class names as string this module is in conflict with + $this->phpmin = array(5,4); // Minimum version of PHP required by module $this->langfiles = array("compta","bills"); // Constants