| [ Index ] |
|
Code source de Dolibarr 2.0.1 |
1 <?php 2 /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> 3 * Copyright (C) 2004 Laurent Destailleur <eldy@users.sourceforge.net> 4 * Copyright (C) 2005 Regis Houssin <regis.houssin@cap-networks.com> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 * 20 * $Id: modLdap.class.php,v 1.13 2005/10/22 13:45:24 eldy Exp $ 21 * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modLdap.class.php,v $ 22 * 23 */ 24 25 /** \defgroup ldap Module ldap 26 \brief Module pour interfacer les contacts avec un annuaire Ldap 27 */ 28 29 /** 30 \file htdocs/includes/modules/modLdap.class.php 31 \ingroup ldap 32 \brief Fichier de description et activation du module Ldap 33 */ 34 35 include_once "DolibarrModules.class.php"; 36 37 /** \class modLdap 38 \brief Classe de description et activation du module Ldap 39 */ 40 41 class modLdap extends DolibarrModules 42 { 43 /** 44 * \brief Constructeur. Definit les noms, constantes et boites 45 * \param DB handler d'accès base 46 */ 47 function modLdap($DB) 48 { 49 $this->db = $DB ; 50 $this->numero = 200 ; 51 52 $this->name = "Ldap"; 53 $this->family = "technic"; 54 $this->description = "Synchronisation Ldap"; 55 $this->version = 'experimental'; // 'experimental' or 'dolibarr' or version 56 $this->const_name = 'MAIN_MODULE_LDAP'; 57 $this->special = 1; 58 59 // Dir 60 $this->dirs = array(); 61 62 // Config pages 63 $this->config_page_url = "ldap.php"; 64 65 // Dépendances 66 $this->depends = array(); 67 $this->requiredby = array(); 68 69 // Constantes 70 $this->const = array(); 71 72 // Boites 73 $this->boxes = array(); 74 75 // Permissions 76 $this->rights = array(); 77 $this->rights_class = 'ldap'; 78 } 79 80 /** 81 * \brief Fonction appelé lors de l'activation du module. Insère en base les constantes, boites, permissions du module. 82 * Définit également les répertoires de données à créer pour ce module. 83 */ 84 function init() 85 { 86 $sql = array(); 87 88 return $this->_init($sql); 89 } 90 91 /** 92 * \brief Fonction appelée lors de la désactivation d'un module. 93 * Supprime de la base les constantes, boites et permissions du module. 94 */ 95 function remove() 96 { 97 $sql = array(); 98 99 return $this->_remove($sql); 100 } 101 } 102 ?>
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 |
|