[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003-2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> 4 * Copyright (C) 2004 Sebastien Di Cintio <sdicintio@ressource-toi.org> 5 * Copyright (C) 2004 Benoit Mortier <benoit.mortier@opensides.be> 6 * 7 * This program is free software; you can redistribute it and/or modify 8 * it under the terms of the GNU General Public License as published by 9 * the Free Software Foundation; either version 2 of the License, or 10 * (at your option) any later version. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 20 * 21 * $Id: modCommercial.class.php,v 1.19 2005/10/22 13:45:24 eldy Exp $ 22 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modCommercial.class.php,v $ 23 * 24 */ 25 26 /** \defgroup commercial Module commercial 27 \brief Module pour gérer les fonctions commerciales 28 */ 29 30 /** 31 \file htdocs/includes/modules/modCommercial.class.php 32 \ingroup commercial 33 \brief Fichier de description et activation du module Commercial 34 */ 35 36 include_once "DolibarrModules.class.php"; 37 38 /** \class modCommercial 39 \brief Classe de description et activation du module Commercial 40 */ 41 42 class modCommercial extends DolibarrModules 43 { 44 45 /** 46 * \brief Constructeur. Definit les noms, constantes et boites 47 * \param DB handler d'accès base 48 */ 49 function modCommercial($DB) 50 { 51 $this->db = $DB ; 52 $this->numero = 2 ; 53 54 $this->family = "crm"; 55 $this->name = "Commercial"; 56 $this->description = "Gestion commercial"; 57 58 $this->revision = explode(' ','$Revision: 1.19 $'); 59 $this->version = $this->revision[1]; 60 61 $this->const_name = 'MAIN_MODULE_COMMERCIAL'; 62 $this->special = 0; 63 $this->picto='commercial'; 64 65 // Dir 66 $this->dirs = array(); 67 68 // Dépendances 69 $this->depends = array("modSociete"); 70 $this->requiredby = array("modPropale","modContrat","modCommande",); 71 72 // Constantes 73 $this->const = array(); 74 75 // Boxes 76 $this->boxes = array(); 77 $this->boxes[0][0] = "Derniers clients"; 78 $this->boxes[0][1] = "box_clients.php"; 79 $this->boxes[1][0] = "Derniers prospects enregistrés"; 80 $this->boxes[1][1] = "box_prospect.php"; 81 82 // Permissions 83 $this->rights = array(); 84 $this->rights_class = 'commercial'; 85 $r = 1; 86 87 // 261 : Permission générale 88 $this->rights[$r][0] = 261; 89 $this->rights[$r][1] = 'Informations commerciales'; 90 $this->rights[$r][2] = 'r'; 91 $this->rights[$r][3] = 1; 92 $this->rights[$r][4] = 'main'; 93 $this->rights[$r][5] = 'lire'; 94 $r++; 95 } 96 97 /** 98 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 99 * Définit également les répertoires de données à créer pour ce module. 100 */ 101 function init() 102 { 103 // Permissions 104 $this->remove(); 105 106 $sql = array(); 107 108 return $this->_init($sql); 109 } 110 111 /** 112 * \brief Fonction appelée lors de la désactivation d'un module. 113 * Supprime de la base les constantes, boites et permissions du module. 114 */ 115 function remove() 116 { 117 $sql = array(); 118 119 return $this->_remove($sql); 120 } 121 } 122 ?>
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Mon Nov 26 12:29:37 2007 | par Balluche grâce à PHPXref 0.7 |
![]() |