[ Index ]
 

Code source de Dolibarr 2.0.1

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/htdocs/includes/modules/ -> modFicheinter.class.php (source)

   1  <?php
   2  /* Copyright (C) 2003      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: modFicheinter.class.php,v 1.25 2005/10/22 13:45:24 eldy Exp $
  22   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modFicheinter.class.php,v $
  23   *
  24   */
  25  
  26  /**
  27          \defgroup   ficheinter     Module fiche interventions
  28          \brief      Module pour gérer la tenue de fiches d'interventions
  29  */
  30  
  31  /**
  32          \file       htdocs/includes/modules/modFicheinter.class.php
  33          \ingroup    ficheinter
  34          \brief      Fichier de description et activation du module Ficheinter
  35  */
  36  
  37  include_once  "DolibarrModules.class.php";
  38  
  39  /**
  40          \class      modFicheinter
  41          \brief      Classe de description et activation du module Ficheinter
  42  */
  43  
  44  class modFicheinter  extends DolibarrModules
  45  {
  46  
  47     /**
  48      *   \brief      Constructeur. Definit les noms, constantes et boites
  49      *   \param      DB      handler d'accès base
  50      */
  51    function modFicheinter($DB)
  52    {
  53      $this->db = $DB ;
  54      $this->numero = 70 ;
  55      
  56      $this->family = "crm";
  57      $this->name = "Fiche d'intervention";
  58      $this->description = "Gestion des fiches d'intervention";
  59  
  60      $this->revision = explode(" ","$Revision: 1.25 $");
  61      $this->version = $this->revision[1];
  62  
  63      $this->const_name = 'MAIN_MODULE_FICHEINTER';
  64      $this->special = 0;
  65      $this->picto = "intervention";
  66      
  67      // Dir
  68      $this->dirs = array();
  69  
  70      // Config pages
  71      $this->config_page_url = "fichinter.php";
  72  
  73      // Dépendances
  74      $this->depends = array("modSociete");
  75      $this->requiredby = array();
  76  
  77      // Constantes
  78      $this->const = array();
  79  
  80      // Boites
  81      $this->boxes = array();
  82  
  83      // Permissions
  84      $this->rights = array();
  85      $this->rights_class = 'ficheinter';
  86  
  87      $this->rights[1][0] = 61;
  88      $this->rights[1][1] = 'Lire les fiches d\'intervention';
  89      $this->rights[1][2] = 'r';
  90      $this->rights[1][3] = 1;
  91      $this->rights[1][4] = 'lire';
  92  
  93      $this->rights[2][0] = 62;
  94      $this->rights[2][1] = 'Créer/modifier les fiches d\'intervention';
  95      $this->rights[2][2] = 'w';
  96      $this->rights[2][3] = 0;
  97      $this->rights[2][4] = 'creer';
  98  
  99      $this->rights[3][0] = 64;
 100      $this->rights[3][1] = 'Supprimer les fiches d\'intervention';
 101      $this->rights[3][2] = 'd';
 102      $this->rights[3][3] = 0;
 103      $this->rights[3][4] = 'supprimer';
 104  
 105    }
 106  
 107  
 108     /**
 109      *   \brief      Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module.
 110      *               Définit également les répertoires de données à créer pour ce module.
 111      */
 112    function init()
 113    {
 114      // Permissions
 115      $this->remove();
 116  
 117      return $this->_init($sql);
 118    }
 119  
 120    /**
 121     *    \brief      Fonction appelée lors de la désactivation d'un module.
 122     *                Supprime de la base les constantes, boites et permissions du module.
 123     */
 124    function remove()
 125    {
 126      $sql = array();
 127  
 128      return $this->_remove($sql);
 129    }
 130  }
 131  ?>


Généré le : Mon Nov 26 12:29:37 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics