Classement des modules en 3 onglets (standard, speciaux, interfaces) plutot que 2 (standard, speciaux)
This commit is contained in:
parent
49496afbd4
commit
35e980e25c
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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();
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
<?php
|
||||
/* Copyright (C) 2004-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org>
|
||||
* Copyright (C) 2006 Laurent Destailleur <eldy@users.sourceforge.net>
|
||||
*
|
||||
* 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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user