[ 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: modBoutique.class.php,v 1.18 2005/10/22 13:45:24 eldy Exp $ 22 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modBoutique.class.php,v $ 23 * 24 */ 25 26 /** \defgroup boutique Module boutique 27 \brief Module pour gérer une boutique et interface avec OSC 28 */ 29 30 /** 31 \file htdocs/includes/modules/modBoutique.class.php 32 \ingroup boutique 33 \brief Fichier de description et activation du module Boutique 34 */ 35 36 include_once "DolibarrModules.class.php"; 37 38 /** \class modBoutique 39 \brief Classe de description et activation du module Boutique 40 */ 41 42 class modBoutique 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 modBoutique($DB) 50 { 51 $this->db = $DB ; 52 $this->numero = 86 ; 53 54 $this->family = "products"; 55 $this->name = "Boutique"; 56 $this->description = "Gestion des boutiques"; 57 $this->version = 'experimental'; // 'experimental' or 'dolibarr' or version 58 $this->const_name = 'MAIN_MODULE_BOUTIQUE'; 59 $this->special = 1; 60 61 // Dir 62 $this->dirs = array(); 63 64 // Config pages 65 $this->config_page_url = array("boutique.php","osc-languages.php"); 66 67 // Dépendances 68 $this->depends = array(); 69 $this->requiredby = array(); 70 71 // Constantes 72 $this->const = array(); 73 74 // Boxes 75 $this->boxes = array(); 76 $this->boxes[0][0] = "Livres"; 77 $this->boxes[0][1] = "box_boutique_livre.php"; 78 79 // Permissions 80 $this->rights = array(); 81 $this->rights_class = 'boutique'; 82 } 83 84 /** 85 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 86 * Définit également les répertoires de données à créer pour ce module. 87 */ 88 function init() 89 { 90 $sql = array(); 91 92 return $this->_init($sql); 93 } 94 95 /** 96 * \brief Fonction appelée lors de la désactivation d'un module. 97 * Supprime de la base les constantes, boites et permissions du module. 98 */ 99 function remove() 100 { 101 $sql = array(); 102 103 return $this->_remove($sql); 104 } 105 } 106 ?>
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 |
![]() |