| [ 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: modExpedition.class.php,v 1.26 2005/10/22 13:45:24 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modExpedition.class.php,v $ 21 * 22 */ 23 24 /** 25 \defgroup expedition Module expedition 26 \brief Module pour gérer les expeditions de produits 27 */ 28 29 /** 30 \file htdocs/includes/modules/modExpedition.class.php 31 \ingroup expedition 32 \brief Fichier de description et activation du module Expedition 33 */ 34 35 include_once "DolibarrModules.class.php"; 36 37 /** \class modExpedition 38 \brief Classe de description et activation du module Expedition 39 */ 40 41 class modExpedition 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 modExpedition($DB) 49 { 50 $this->db = $DB ; 51 $this->numero = 80 ; 52 53 $this->family = "crm"; 54 $this->name = "Expedition"; 55 $this->description = "Gestion des expéditions"; 56 $this->revision = explode(' ','$Revision: 1.26 $'); 57 $this->version = $this->revision[1]; 58 $this->const_name = 'MAIN_MODULE_EXPEDITION'; 59 $this->special = 0; 60 $this->picto = "sending"; 61 62 // Dir 63 $this->dirs = array(); 64 65 // Config pages 66 $this->config_page_url = "expedition.php"; 67 68 // Dépendances 69 $this->depends = array("modCommande"); 70 $this->requiredby = array(); 71 72 // Constantes 73 $this->const = array(); 74 75 // Boxes 76 $this->boxes = array(); 77 78 // Permissions 79 $this->rights = array(); 80 $this->rights_class = 'expedition'; 81 82 $this->rights[1][0] = 101; 83 $this->rights[1][1] = 'Lire les expeditions'; 84 $this->rights[1][2] = 'r'; 85 $this->rights[1][3] = 1; 86 $this->rights[1][4] = 'lire'; 87 88 $this->rights[2][0] = 102; 89 $this->rights[2][1] = 'Créer modifier les expeditions'; 90 $this->rights[2][2] = 'w'; 91 $this->rights[2][3] = 0; 92 $this->rights[2][4] = 'creer'; 93 94 $this->rights[3][0] = 104; 95 $this->rights[3][1] = 'Valider les expeditions'; 96 $this->rights[3][2] = 'd'; 97 $this->rights[3][3] = 0; 98 $this->rights[3][4] = 'valider'; 99 100 $this->rights[4][0] = 109; 101 $this->rights[4][1] = 'Supprimer les expeditions'; 102 $this->rights[4][2] = 'd'; 103 $this->rights[4][3] = 0; 104 $this->rights[4][4] = 'supprimer'; 105 106 } 107 108 109 /** 110 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 111 * Définit également les répertoires de données à créer pour ce module. 112 */ 113 function init() 114 { 115 // Permissions 116 $this->remove(); 117 118 // Dir 119 $this->dirs[0] = DOL_DATA_ROOT."/expedition"; 120 121 $sql = array(); 122 123 return $this->_init($sql); 124 } 125 126 /** 127 * \brief Fonction appelée lors de la désactivation d'un module. 128 * Supprime de la base les constantes, boites et permissions du module. 129 */ 130 function remove() 131 { 132 $sql = array(); 133 134 return $this->_remove($sql); 135 } 136 } 137 ?>
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 |
|