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,9 +54,9 @@ class modBanque extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux";
$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->special = 0;
$this->picto='account';

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)
$this->name = eregi_replace('^mod','',get_class($this));
$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->special = 2;

View File

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

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)
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des commandes clients";
$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->special = 0;
$this->picto='order';

View File

@ -54,9 +54,9 @@ class modCommercial extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion commercial";
$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->special = 0;
$this->picto='commercial';

View File

@ -56,9 +56,9 @@ class modComptabilite extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion sommaire de comptabilite";
$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->special = 0;
$this->picto='';

View File

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

View File

@ -54,9 +54,9 @@ class modContrat extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des contrats de services";
$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->special = 0;
$this->picto='contract';

View File

@ -53,9 +53,9 @@ class modDeplacement extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des notes de frais et deplacements"; // Si traduction Module75Desc non trouvee
$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->special = 0;
$this->picto = "generic";

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)
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des documents";
$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->special = 2;
$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)
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des editeurs";
$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->special = 3;
$this->picto='book';

View File

@ -55,9 +55,9 @@ class modEnergie extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Suivi de la consommation des energies";
$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->special = 2;
$this->picto='energie';

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)
$this->name = eregi_replace('^mod','',get_class($this));
$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->special = 0;
$this->picto = "sending";

View File

@ -55,9 +55,9 @@ class modFacture extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des factures";
$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->special = 0;
$this->picto='bill';

View File

@ -55,9 +55,9 @@ class modFicheinter extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des fiches d'intervention";
$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->special = 0;
$this->picto = "intervention";

View File

@ -52,9 +52,9 @@ class modFournisseur extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des fournisseurs";
$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->special = 0;
$this->picto='company';

View File

@ -58,9 +58,9 @@ class modProduit extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des produits";
$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->special = 0;
$this->picto='product';

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)
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des projets";
$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->special = 0;
$this->picto='email';

View File

@ -53,9 +53,9 @@ class modPropale extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des propositions commerciales";
$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->special = 0;
$this->picto='propal';

View File

@ -56,9 +56,9 @@ class modService extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des services";
$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->special = 0;
$this->picto='service';

View File

@ -56,9 +56,9 @@ class modSociete extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des societes et contacts";
$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->special = 0;
$this->config_page_url = array("societe.php");

View File

@ -53,9 +53,9 @@ class modStock extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion des stocks";
$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->special = 0;
$this->picto='stock';

View File

@ -57,9 +57,9 @@ class modTax extends DolibarrModules
// 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->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->special = 0;
$this->picto='bill';

View File

@ -56,9 +56,9 @@ class modTelephonie extends DolibarrModules
$this->name = eregi_replace('^mod','',get_class($this));
$this->description = "Gestion de la Telephonie";
$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->special = 2;
$this->picto='phoning';

View File

@ -52,9 +52,9 @@ class modUser extends DolibarrModules
$this->description = "Gestion des utilisateurs (requis)";
$this->always_enabled = 1; // Can't be disabled
$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->special = 0;
$this->picto='group';