| [ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003,2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004-2005 Laurent Destailleur <eldy@users.sourceforge.net> 4 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 9 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 18 * 19 * $Id: modDon.class.php,v 1.18 2005/10/22 13:45:24 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modDon.class.php,v $ 21 * 22 */ 23 24 /** 25 \defgroup don Module don 26 \brief Module pour gérer le suivi des dons 27 */ 28 29 /** 30 \file htdocs/includes/modules/modDon.class.php 31 \ingroup don 32 \brief Fichier de description et activation du module Don 33 */ 34 35 include_once "DolibarrModules.class.php"; 36 37 /** 38 \class modDon 39 \brief Classe de description et activation du module Don 40 */ 41 42 class modDon 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 modDon($DB) 50 { 51 $this->db = $DB ; 52 $this->numero = 700 ; 53 54 $this->family = "financial"; 55 $this->name = "Don"; 56 $this->description = "Gestion des dons"; 57 $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version 58 $this->const_name = 'MAIN_MODULE_DON'; 59 $this->special = 1; 60 61 // Dir 62 $this->dirs = array(); 63 64 // Dépendances 65 $this->depends = array(); 66 $this->requiredby = array(); 67 68 // Config pages 69 $this->config_page_url = "dons.php"; 70 71 // Constantes 72 $this->const = array(); 73 $this->const[0][0] = "DONS_FORM"; 74 $this->const[0][1] = "chaine"; 75 $this->const[0][2] = "fsfe.fr.php"; 76 $this->const[0][3] = 'Nom du gestionnaire de formulaire de dons'; 77 $this->const[0][4] = 0; 78 79 // Boxes 80 $this->boxes = array(); 81 82 // Permissions 83 $this->rights = array(); 84 $this->rights_class = 'don'; 85 86 $this->rights[1][0] = 700; 87 $this->rights[1][1] = 'Lire les dons'; 88 $this->rights[1][2] = 'r'; 89 $this->rights[1][3] = 1; 90 $this->rights[1][4] = 'lire'; 91 92 $this->rights[2][0] = 701; 93 $this->rights[2][1] = 'Créer/modifier les dons'; 94 $this->rights[2][2] = 'w'; 95 $this->rights[2][3] = 0; 96 $this->rights[2][4] = 'creer'; 97 98 $this->rights[3][0] = 702; 99 $this->rights[3][1] = 'Supprimer les dons'; 100 $this->rights[3][2] = 'd'; 101 $this->rights[3][3] = 0; 102 $this->rights[3][4] = 'supprimer'; 103 104 } 105 106 107 /** 108 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 109 * Définit également les répertoires de données à créer pour ce module. 110 */ 111 function init() 112 { 113 $sql = array(); 114 115 return $this->_init($sql); 116 } 117 118 /** 119 * \brief Fonction appelée lors de la désactivation d'un module. 120 * Supprime de la base les constantes, boites et permissions du module. 121 */ 122 function remove() 123 { 124 $sql = array(); 125 126 return $this->_remove($sql); 127 } 128 } 129 ?>
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 |
|