From 35e980e25c677de4021331738ce25e80f6b823d3 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Fri, 31 Mar 2006 18:03:11 +0000 Subject: [PATCH] Classement des modules en 3 onglets (standard, speciaux, interfaces) plutot que 2 (standard, speciaux) --- htdocs/includes/modules/modAdherent.class.php | 2 +- htdocs/includes/modules/modBookmark.class.php | 2 +- htdocs/includes/modules/modBoutique.class.php | 115 +++++++++--------- htdocs/includes/modules/modDon.class.php | 2 +- htdocs/includes/modules/modEnergie.class.php | 5 +- .../includes/modules/modExternalRss.class.php | 2 +- htdocs/includes/modules/modProjet.class.php | 6 +- .../includes/modules/modTelephonie.class.php | 5 +- .../includes/modules/modWebcalendar.class.php | 2 +- 9 files changed, 70 insertions(+), 71 deletions(-) diff --git a/htdocs/includes/modules/modAdherent.class.php b/htdocs/includes/modules/modAdherent.class.php index 4ecbd1ed657..8092c573620 100644 --- a/htdocs/includes/modules/modAdherent.class.php +++ b/htdocs/includes/modules/modAdherent.class.php @@ -59,7 +59,7 @@ class modAdherent extends DolibarrModules $this->description = "Gestion des adhérents d'une association"; $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_ADHERENT'; - $this->special = 1; + $this->special = 2; $this->picto='user'; // Dir diff --git a/htdocs/includes/modules/modBookmark.class.php b/htdocs/includes/modules/modBookmark.class.php index d7fcb3f5443..c8a3284fbdf 100644 --- a/htdocs/includes/modules/modBookmark.class.php +++ b/htdocs/includes/modules/modBookmark.class.php @@ -58,7 +58,7 @@ class modBookmark extends DolibarrModules $this->version = $this->revision[1]; $this->const_name = 'MAIN_MODULE_BOOKMARK'; - $this->special = 1; + $this->special = 0; $this->picto='bookmark'; // Dir diff --git a/htdocs/includes/modules/modBoutique.class.php b/htdocs/includes/modules/modBoutique.class.php index fb6a607ac2e..e760e87fc61 100644 --- a/htdocs/includes/modules/modBoutique.class.php +++ b/htdocs/includes/modules/modBoutique.class.php @@ -23,84 +23,81 @@ */ /** \defgroup boutique Module boutique - \brief Module pour gérer une boutique et interface avec OSC + \brief Module pour gérer une boutique et interface avec OSCommerce */ /** \file htdocs/includes/modules/modBoutique.class.php \ingroup boutique - \brief Fichier de description et activation du module Boutique + \brief Fichier de description et activation du module OSCommerce */ include_once "DolibarrModules.class.php"; -/** \class modBoutique - \brief Classe de description et activation du module Boutique +/** + \class modBoutique + \brief Classe de description et activation du module OSCommerce */ class modBoutique extends DolibarrModules { - /** - * \brief Constructeur. Definit les noms, constantes et boites - * \param DB handler d'accès base - */ - function modBoutique($DB) - { - $this->db = $DB ; - $this->id = 'boutique'; // Same value xxx than in file modXxx.class.php file - $this->numero = 86 ; - - $this->family = "products"; - $this->name = "Boutique"; - $this->description = "Gestion des boutiques"; - $this->version = 'experimental'; // 'experimental' or 'dolibarr' or version - $this->const_name = 'MAIN_MODULE_BOUTIQUE'; - $this->special = 1; - - // Dir - $this->dirs = array(); - - // Config pages - $this->config_page_url = array("boutique.php","osc-languages.php"); - - // Dépendances - $this->depends = array(); - $this->requiredby = array(); - - // Constantes - $this->const = array(); - - // Boxes - $this->boxes = array(); - $this->boxes[0][0] = "Livres"; - $this->boxes[0][1] = "box_boutique_livre.php"; - - // Permissions - $this->rights = array(); - $this->rights_class = 'boutique'; - } + /** + * \brief Constructeur. Definit les noms, constantes et boites + * \param DB handler d'accès base + */ + function modBoutique($DB) + { + $this->db = $DB ; + $this->id = 'boutique'; // Same value xxx than in file modXxx.class.php file + $this->numero = 86 ; + + $this->family = "products"; + $this->name = "OSCommerce"; + $this->description = "Gestion d'une boutique OSCommerce"; + $this->version = 'experimental'; // 'experimental' or 'dolibarr' or version + $this->const_name = 'MAIN_MODULE_BOUTIQUE'; + $this->special = 1; + + // Dir + $this->dirs = array(); + + // Config pages + $this->config_page_url = array("boutique.php","osc-languages.php"); + + // Dépendances + $this->depends = array(); + $this->requiredby = array(); + + // Constantes + $this->const = array(); + + // Permissions + $this->rights = array(); + $this->rights_class = 'boutique'; + } /** * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. * Définit également les répertoires de données à créer pour ce module. */ - function init() - { - $sql = array(); - - return $this->_init($sql); - } + function init() + { + $sql = array(); + + return $this->_init($sql); + } - /** - * \brief Fonction appelée lors de la désactivation d'un module. - * Supprime de la base les constantes, boites et permissions du module. - */ - function remove() - { - $sql = array(); - - return $this->_remove($sql); - } + /** + * \brief Fonction appelée lors de la désactivation d'un module. + * Supprime de la base les constantes, boites et permissions du module. + */ + function remove() + { + $sql = array(); + + return $this->_remove($sql); + } + } ?> diff --git a/htdocs/includes/modules/modDon.class.php b/htdocs/includes/modules/modDon.class.php index 2c750739de4..1a06f3e3add 100644 --- a/htdocs/includes/modules/modDon.class.php +++ b/htdocs/includes/modules/modDon.class.php @@ -56,7 +56,7 @@ class modDon extends DolibarrModules $this->description = "Gestion des dons"; $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_DON'; - $this->special = 1; + $this->special = 2; // Dir $this->dirs = array(); diff --git a/htdocs/includes/modules/modEnergie.class.php b/htdocs/includes/modules/modEnergie.class.php index 96ada060d3d..84a36077fe5 100644 --- a/htdocs/includes/modules/modEnergie.class.php +++ b/htdocs/includes/modules/modEnergie.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +51,7 @@ class modEnergie extends DolibarrModules $this->id = 'energie'; // Same value xxx than in file modXxx.class.php file $this->numero = 23 ; - $this->family = "technic"; + $this->family = "other"; $this->name = "Energie"; $this->description = "Suivi de la consommation des energies"; @@ -58,7 +59,7 @@ class modEnergie extends DolibarrModules $this->version = $this->revision[1]; $this->const_name = 'MAIN_MODULE_ENERGIE'; - $this->special = 1; + $this->special = 2; $this->picto='energie'; // Dir diff --git a/htdocs/includes/modules/modExternalRss.class.php b/htdocs/includes/modules/modExternalRss.class.php index bb586b357ac..a086abdc730 100644 --- a/htdocs/includes/modules/modExternalRss.class.php +++ b/htdocs/includes/modules/modExternalRss.class.php @@ -54,7 +54,7 @@ class modExternalRss extends DolibarrModules $this->description = "Ajout de files d'informations RSS dans les écrans Dolibarr"; $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_EXTERNALRSS'; - $this->special = 0; + $this->special = 1; $this->picto='rss'; // Dir diff --git a/htdocs/includes/modules/modProjet.class.php b/htdocs/includes/modules/modProjet.class.php index aaf4415c590..b7bb0df2729 100644 --- a/htdocs/includes/modules/modProjet.class.php +++ b/htdocs/includes/modules/modProjet.class.php @@ -55,12 +55,12 @@ class modProjet extends DolibarrModules $this->family = "projects"; $this->name = "Projets"; $this->description = "Gestion des projets"; - $this->revision = explode(" ","$Revision$"); $this->version = $this->revision[1]; - $this->const_name = 'MAIN_MODULE_PROJET'; - + $this->special = 0; + $this->picto='email'; + // Dépendances $this->depends = array(); $this->requiredby = array(); diff --git a/htdocs/includes/modules/modTelephonie.class.php b/htdocs/includes/modules/modTelephonie.class.php index 84a0260d430..4a7ff9c7961 100644 --- a/htdocs/includes/modules/modTelephonie.class.php +++ b/htdocs/includes/modules/modTelephonie.class.php @@ -1,5 +1,6 @@ + * Copyright (C) 2006 Laurent Destailleur * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -50,7 +51,7 @@ class modTelephonie extends DolibarrModules $this->id = 'telephonie'; // Same value xxx than in file modXxx.class.php file $this->numero = 56 ; - $this->family = "technic"; + $this->family = "other"; $this->name = "Telephonie"; $this->description = "Gestion de la Telephonie"; @@ -59,7 +60,7 @@ class modTelephonie extends DolibarrModules $this->const_name = "MAIN_MODULE_TELEPHONIE"; $this->const_config = MAIN_MODULE_TELEPHONIE; - $this->special = 1; + $this->special = 2; $this->picto='phoning'; // Dir diff --git a/htdocs/includes/modules/modWebcalendar.class.php b/htdocs/includes/modules/modWebcalendar.class.php index 1292a4aea48..36e004ad118 100644 --- a/htdocs/includes/modules/modWebcalendar.class.php +++ b/htdocs/includes/modules/modWebcalendar.class.php @@ -55,7 +55,7 @@ class modWebcalendar extends DolibarrModules $this->description = "Interfaçage avec le calendrier Webcalendar"; $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version $this->const_name = 'MAIN_MODULE_WEBCALENDAR'; - $this->special = 0; + $this->special = 1; $this->picto='calendar'; // Dir