Uniformize way to set version on modules

This commit is contained in:
Laurent Destailleur 2008-12-15 22:25:59 +00:00
parent b9cab3f82a
commit ced7c16506
25 changed files with 75 additions and 69 deletions

View File

@ -54,8 +54,8 @@ class modBanque extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux"; $this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -53,8 +53,9 @@ class modBookmark extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des Bookmarks"; $this->description = "Gestion des Bookmarks";
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1]; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 2; $this->special = 2;

View File

@ -51,9 +51,8 @@ class modCategorie extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des catégories (produits, clients, fournisseurs...)"; $this->description = "Gestion des catégories (produits, clients, fournisseurs...)";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
//$this->version = 'experimental'; // 'development' or 'experimental' or 'dolibarr' or version
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -54,8 +54,9 @@ class modCommande extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des commandes clients"; $this->description = "Gestion des commandes clients";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;
$this->picto='order'; $this->picto='order';

View File

@ -54,8 +54,8 @@ class modCommercial extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion commercial"; $this->description = "Gestion commercial";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -56,8 +56,8 @@ class modComptabilite extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion sommaire de comptabilite"; $this->description = "Gestion sommaire de comptabilite";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -57,8 +57,8 @@ class modComptabiliteExpert extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion expert de comptabilite (doubles parties)"; $this->description = "Gestion expert de comptabilite (doubles parties)";
// $this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
// $this->version = $this->revision[1]; //$this->version = 'dolibarr';
$this->version = "development"; $this->version = "development";
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);

View File

@ -54,8 +54,8 @@ class modContrat extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des contrats de services"; $this->description = "Gestion des contrats de services";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -53,8 +53,8 @@ class modDeplacement extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee $this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -52,8 +52,9 @@ class modDocument extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des documents"; $this->description = "Gestion des documents";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 2; $this->special = 2;
$this->picto='dir'; $this->picto='dir';

View File

@ -52,8 +52,9 @@ class modEditeur extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des editeurs"; $this->description = "Gestion des editeurs";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 3; $this->special = 3;
$this->picto='book'; $this->picto='book';

View File

@ -55,8 +55,8 @@ class modEnergie extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Suivi de la consommation des energies"; $this->description = "Suivi de la consommation des energies";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 2; $this->special = 2;

View File

@ -50,8 +50,10 @@ class modExpedition extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des expeditions"; $this->description = "Gestion des expeditions";
$this->revision = explode(' ','$Revision$');
$this->version = $this->revision[1]; // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;
$this->picto = "sending"; $this->picto = "sending";

View File

@ -55,8 +55,8 @@ class modFacture extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des factures"; $this->description = "Gestion des factures";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -55,8 +55,8 @@ class modFicheinter extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des fiches d'intervention"; $this->description = "Gestion des fiches d'intervention";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -52,8 +52,8 @@ class modFournisseur extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des fournisseurs"; $this->description = "Gestion des fournisseurs";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -58,8 +58,8 @@ class modProduit extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des produits"; $this->description = "Gestion des produits";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -53,8 +53,9 @@ class modProjet extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module) // Module label (no space allowed), used if translation string 'ModuleXXXName' not found (where XXX is value of numeric property 'numero' of module)
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des projets"; $this->description = "Gestion des projets";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;
$this->picto='email'; $this->picto='email';

View File

@ -53,8 +53,8 @@ class modPropale extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des propositions commerciales"; $this->description = "Gestion des propositions commerciales";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -56,8 +56,8 @@ class modService extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des services"; $this->description = "Gestion des services";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -56,8 +56,8 @@ class modSociete extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des societes et contacts"; $this->description = "Gestion des societes et contacts";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -53,8 +53,8 @@ class modStock extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des stocks"; $this->description = "Gestion des stocks";
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -57,8 +57,8 @@ class modTax extends DolibarrModules
// Module description used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module) // Module description used if translation string 'ModuleXXXDesc' not found (where XXX is value of numeric property 'numero' of module)
$this->description = "Gestion des taxes, charges sociales et dividendes"; $this->description = "Gestion des taxes, charges sociales et dividendes";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;

View File

@ -56,8 +56,8 @@ class modTelephonie extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this)); $this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion de la Telephonie"; $this->description = "Gestion de la Telephonie";
$this->revision = explode(" ","$Revision$"); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 2; $this->special = 2;

View File

@ -52,8 +52,8 @@ class modUser extends DolibarrModules
$this->description = "Gestion des utilisateurs (requis)"; $this->description = "Gestion des utilisateurs (requis)";
$this->always_enabled = 1; // Can't be disabled $this->always_enabled = 1; // Can't be disabled
$this->revision = explode(' ','$Revision$'); // Possible values for version are: 'development', 'experimental', 'dolibarr' or version
$this->version = $this->revision[1]; $this->version = 'dolibarr';
$this->const_name = 'MAIN_MODULE_'.strtoupper($this->name); $this->const_name = 'MAIN_MODULE_'.strtoupper($this->name);
$this->special = 0; $this->special = 0;