[ 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 * 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: modBanque.class.php,v 1.27 2005/10/22 13:45:24 eldy Exp $ 22 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modBanque.class.php,v $ 23 */ 24 25 /** \defgroup banque Module banque 26 \brief Module pour gérer la tenue d'un compte bancaire et rapprochements 27 */ 28 29 /** 30 \file htdocs/includes/modules/modBanque.class.php 31 \ingroup banque 32 \brief Fichier de description et activation du module Banque 33 */ 34 35 include_once "DolibarrModules.class.php"; 36 37 /** \class modBanque 38 \brief Classe de description et activation du module Banque 39 */ 40 41 class modBanque extends DolibarrModules 42 { 43 44 /** 45 * \brief Constructeur. Definit les noms, constantes et boites 46 * \param DB handler d'accès base 47 */ 48 function modBanque($DB) 49 { 50 $this->db = $DB ; 51 $this->numero = 85 ; 52 53 $this->family = "financial"; 54 $this->name = "Banque"; 55 $this->description = "Gestion des comptes financiers de type Comptes bancaires ou postaux"; 56 57 $this->revision = explode(' ','$Revision: 1.27 $'); 58 $this->version = $this->revision[1]; 59 60 $this->const_name = 'MAIN_MODULE_BANQUE'; 61 $this->picto='account'; 62 63 // Dépendances 64 $this->depends = array(); 65 $this->requiredby = array(); 66 67 // Constantes 68 $this->const = array(); 69 70 $this->dirs = array(); 71 72 // Boites 73 $this->boxes = array(); 74 75 $this->boxes[0][0] = "Soldes Comptes Bancaires"; 76 $this->boxes[0][1] = "box_comptes.php"; 77 78 // Permissions 79 $this->rights = array(); 80 $this->rights_class = 'banque'; 81 $r=0; 82 83 $r++; 84 $this->rights[$r][0] = 111; // id de la permission 85 $this->rights[$r][1] = 'Lire les comptes bancaires'; // libelle de la permission 86 $this->rights[$r][2] = 'a'; // type de la permission (déprécié à ce jour) 87 $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut 88 $this->rights[$r][4] = 'lire'; 89 90 $r++; 91 $this->rights[$r][0] = 112; // id de la permission 92 $this->rights[$r][1] = 'Créer modifier rapprocher transactions'; // libelle de la permission 93 $this->rights[$r][2] = 'a'; // type de la permission (déprécié à ce jour) 94 $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut 95 $this->rights[$r][4] = 'modifier'; 96 97 $r++; 98 $this->rights[$r][0] = 113; // id de la permission 99 $this->rights[$r][1] = 'Configurer les comptes bancaires (créer, gérer catégories)'; // libelle de la permission 100 $this->rights[$r][2] = 'a'; // type de la permission (déprécié à ce jour) 101 $this->rights[$r][3] = 0; // La permission est-elle une permission par défaut 102 $this->rights[$r][4] = 'configurer'; 103 } 104 105 106 /** 107 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 108 * Définit également les répertoires de données à créer pour ce module. 109 */ 110 function init() 111 { 112 global $conf; 113 114 // Permissions 115 $this->remove(); 116 117 $sql = array(); 118 119 $this->dirs[0] = DOL_DATA_ROOT.'/graph/'; 120 $this->dirs[1] = DOL_DATA_ROOT.'/graph/banque/'; 121 122 return $this->_init($sql); 123 } 124 125 /** 126 * \brief Fonction appelée lors de la désactivation d'un module. 127 * Supprime de la base les constantes, boites et permissions du module. 128 */ 129 function remove() 130 { 131 $sql = array(); 132 133 return $this->_remove($sql); 134 } 135 } 136 ?>
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 |
![]() |