| [ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2005 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 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: modBookmark.class.php,v 1.6 2005/10/22 13:45:24 eldy Exp $ 20 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modBookmark.class.php,v $ 21 */ 22 23 /** 24 \defgroup bookmark Module Bookmark 25 \brief Module pour gérer les Bookmarks 26 */ 27 28 /** 29 \file htdocs/includes/modules/modBookmark.class.php 30 \ingroup bookmark 31 \brief Fichier de description et activation du module Bookmarks 32 */ 33 34 include_once "DolibarrModules.class.php"; 35 36 /** 37 \class modBookmark 38 \brief Classe de description et activation du module Bookmark 39 */ 40 41 class modBookmark 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 modBookmark($DB) 49 { 50 $this->db = $DB ; 51 $this->numero = 330; 52 53 $this->family = "technic"; 54 $this->name = "Bookmarks"; 55 $this->description = "Gestion des Bookmarks"; 56 $this->revision = explode(' ','$Revision: 1.6 $'); 57 $this->version = $this->revision[1]; 58 59 $this->const_name = 'MAIN_MODULE_BOOKMARK'; 60 $this->special = 1; 61 $this->picto='bookmark'; 62 63 // Dir 64 $this->dirs = array(); 65 66 // Dépendances 67 $this->depends = array(); 68 $this->requiredby = array(); 69 70 // Config pages 71 //$this->config_page_url = ""; 72 73 // Constantes 74 $this->const = array(); 75 76 // Boites 77 $this->boxes = array(); 78 $this->boxes[0][0] = "Mes derniers marque-pages"; 79 $this->boxes[0][1] = "box_bookmarks.php"; 80 81 // Permissions 82 $this->rights = array(); 83 $this->rights_class = 'bookmark'; 84 $r=0; 85 86 $r++; 87 $this->rights[$r][0] = 331; // id de la permission 88 $this->rights[$r][1] = 'Lire les bookmarks'; // libelle de la permission 89 $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) 90 $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut 91 $this->rights[$r][4] = 'lire'; 92 93 $r++; 94 $this->rights[$r][0] = 332; // id de la permission 95 $this->rights[$r][1] = 'Creer/modifier les bookmarks'; // libelle de la permission 96 $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) 97 $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut 98 $this->rights[$r][4] = 'creer'; 99 100 $r++; 101 $this->rights[$r][0] = 333; // id de la permission 102 $this->rights[$r][1] = 'Supprimer les bookmarks'; // libelle de la permission 103 $this->rights[$r][2] = 'r'; // type de la permission (déprécié à ce jour) 104 $this->rights[$r][3] = 1; // La permission est-elle une permission par défaut 105 $this->rights[$r][4] = 'supprimer'; 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 116 $sql = array(); 117 118 return $this->_init($sql); 119 } 120 121 /** 122 * \brief Fonction appelée lors de la désactivation d'un module. 123 * Supprime de la base les constantes, boites et permissions du module. 124 */ 125 function remove() 126 { 127 $sql = array(); 128 129 return $this->_remove($sql); 130 } 131 } 132 ?>
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 |
|