[ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2003 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 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: modWebcalendar.class.php,v 1.14 2005/10/22 13:45:24 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modWebcalendar.class.php,v $ 21 * 22 */ 23 24 /** \defgroup webcalendar Module webcalendar 25 \brief Module pour inclure webcalendar dans Dolibarr et 26 intégrer les évênement Dolibarr directement dans le calendrier 27 */ 28 29 /** 30 \file htdocs/includes/modules/modWebcalendar.class.php 31 \ingroup webcalendar 32 \brief Fichier de description et activation du module webcalendar 33 */ 34 35 include_once "DolibarrModules.class.php"; 36 37 /** \class modWebcalendar 38 \brief Classe de description et activation du module webcalendar 39 */ 40 41 class modWebcalendar 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 modWebcalendar($DB) 49 { 50 $this->db = $DB ; 51 $this->numero = 410 ; 52 53 $this->family = "projects"; 54 $this->name = "Webcalendar"; 55 $this->description = "Interfaçage avec le calendrier Webcalendar"; 56 $this->version = 'dolibarr'; // 'experimental' or 'dolibarr' or version 57 $this->const_name = 'MAIN_MODULE_WEBCALENDAR'; 58 $this->special = 0; 59 $this->picto='calendar'; 60 61 // Dir 62 $this->dirs = array(); 63 64 // Config pages 65 $this->config_page_url = "webcalendar.php"; 66 67 // Dépendences 68 $this->depends = array(); 69 $this->requiredby = array(); 70 71 // Constantes 72 $this->const = array(); 73 74 // Boites 75 $this->boxes = array(); 76 77 // Permissions 78 $this->rights = array(); 79 $this->rights_class = 'webcal'; 80 } 81 82 /** 83 * \brief Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 84 * Définit également les répertoires de données à créer pour ce module. 85 */ 86 function init() 87 { 88 $sql = array(); 89 90 return $this->_init($sql); 91 } 92 93 /** 94 * \brief Fonction appelée lors de la désactivation d'un module. 95 * Supprime de la base les constantes, boites et permissions du module. 96 */ 97 function remove() 98 { 99 $sql = array(); 100 101 return $this->_remove($sql); 102 } 103 } 104 ?>
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 |
![]() |