[ 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 * Copyright (C) 2004 Eric Seigne <eric.seigne@ryxeo.com> 7 * 8 * This program is free software; you can redistribute it and/or modify 9 * it under the terms of the GNU General Public License as published by 10 * the Free Software Foundation; either version 2 of the License, or 11 * (at your option) any later version. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 21 * 22 * $Id: modCommande.class.php,v 1.29 2005/10/22 13:45:24 eldy Exp $ 23 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modCommande.class.php,v $ 24 * 25 */ 26 27 /** \defgroup commande Module commande 28 \brief Module pour gérer le suivi des commandes 29 */ 30 31 /** 32 \file htdocs/includes/modules/modCommande.class.php 33 \ingroup commande 34 \brief Fichier de description et activation du module Commande 35 */ 36 37 include_once "DolibarrModules.class.php"; 38 39 /** \class modCommande 40 \brief Classe de description et activation du module Commande 41 */ 42 43 class modCommande extends DolibarrModules 44 { 45 46 /** 47 * \brief Constructeur. Definit les noms, constantes et boites 48 * \param DB handler d'accès base 49 */ 50 function modCommande($DB) 51 { 52 $this->db = $DB ; 53 $this->numero = 25 ; 54 55 $this->family = "crm"; 56 $this->name = "Commande"; 57 $this->description = "Gestion des commandes clients"; 58 $this->revision = explode(' ','$Revision: 1.29 $'); 59 $this->version = $this->revision[1]; 60 $this->const_name = 'MAIN_MODULE_COMMANDE'; 61 $this->special = 0; 62 $this->picto='order'; 63 64 // Dir 65 $this->dirs = array(); 66 67 // Config pages 68 $this->config_page_url = "commande.php"; 69 70 // Dépendances 71 $this->depends = array("modCommercial"); 72 $this->requiredby = array("modExpedition"); 73 74 // Constantes 75 $this->const = array(); 76 77 // Boites 78 $this->boxes = array(); 79 $this->boxes[0][0] = "Commandes"; 80 $this->boxes[0][1] = "box_commandes.php"; 81 82 // Permissions 83 $this->rights = array(); 84 $this->rights_class = 'commande'; 85 86 $this->rights[1][0] = 81; 87 $this->rights[1][1] = 'Lire les commandes'; 88 $this->rights[1][2] = 'r'; 89 $this->rights[1][3] = 1; 90 $this->rights[1][4] = 'lire'; 91 92 $this->rights[2][0] = 82; 93 $this->rights[2][1] = 'Créer modifier les commandes'; 94 $this->rights[2][2] = 'w'; 95 $this->rights[2][3] = 0; 96 $this->rights[2][4] = 'creer'; 97 98 $this->rights[3][0] = 84; 99 $this->rights[3][1] = 'Valider les commandes'; 100 $this->rights[3][2] = 'd'; 101 $this->rights[3][3] = 0; 102 $this->rights[3][4] = 'valider'; 103 104 $this->rights[4][0] = 89; 105 $this->rights[4][1] = 'Supprimer les commandes'; 106 $this->rights[4][2] = 'd'; 107 $this->rights[4][3] = 0; 108 $this->rights[4][4] = 'supprimer'; 109 110 } 111 112 113 /** 114 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 115 * Définit également les répertoires de données à créer pour ce module. 116 */ 117 function init() 118 { 119 global $conf; 120 121 // Permissions 122 $this->remove(); 123 124 // Dir 125 $this->dirs[0] = $conf->commande->dir_output; 126 $this->dirs[1] = $conf->commande->dir_images; 127 128 $sql = array(); 129 130 return $this->_init($sql); 131 } 132 133 134 /** 135 * \brief Fonction appelée lors de la désactivation d'un module. 136 * Supprime de la base les constantes, boites et permissions du module. 137 */ 138 function remove() 139 { 140 $sql = array(); 141 142 return $this->_remove($sql); 143 144 } 145 } 146 ?>
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 |
![]() |