[ 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/ -> modExternalRss.class.php (source)

   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: modExternalRss.class.php,v 1.20 2005/10/22 13:45:24 eldy Exp $
  20   * $Source: /cvsroot/dolibarr/dolibarr/htdocs/includes/modules/modExternalRss.class.php,v $
  21   *
  22   */
  23  
  24  /**     \defgroup   externalrss     Module externalrss
  25          \brief      Module pour inclure des informations externes RSS
  26  */
  27  
  28  /**
  29          \file       htdocs/includes/modules/modExternalRss.class.php
  30          \ingroup    externalrss
  31          \brief      Fichier de description et activation du module externalrss
  32  */
  33  
  34  include_once  "DolibarrModules.class.php";
  35  
  36  /**     \class      modExternalRss
  37          \brief      Classe de description et activation du module externalrss
  38  */
  39  
  40  class modExternalRss extends DolibarrModules
  41  {
  42  
  43     /**
  44      *   \brief      Constructeur. Definit les noms, constantes et boites
  45      *   \param      DB      handler d'accès base
  46      */
  47    function modExternalRss($DB)
  48    {
  49      $this->db = $DB ;
  50      $this->numero = 320;
  51  
  52      $this->family = "technic";
  53      $this->name = "Syndication RSS";
  54      $this->description = "Ajout de files d'informations RSS dans les écrans Dolibarr";
  55      $this->version = 'dolibarr';                        // 'experimental' or 'dolibarr' or version
  56      $this->const_name = 'MAIN_MODULE_EXTERNALRSS';
  57      $this->special = 0;
  58      $this->picto='rss';
  59  
  60      // Dir
  61      $this->dirs = array();
  62  
  63      // Config pages
  64      $this->config_page_url = array("external_rss.php");
  65  
  66      // Dépendances
  67      $this->depends = array();
  68      $this->requiredby = array();
  69      $this->phpmin = array(4,2,0);
  70      $this->phpmax = array();
  71  
  72      // Constantes
  73      $this->const = array();
  74  
  75      // Boxes
  76      $this->boxes = array();
  77      $this->boxes[0][0] = "Informations externes RSS";
  78      $this->boxes[0][1] = "box_external_rss.php";
  79  
  80      // Permissions
  81      $this->rights = array();
  82      $this->rights_class = 'externalrss';
  83    }
  84  
  85     /**
  86      *   \brief      Fonction appelée lors de l'activation du module. Insère en base les constantes, boites, permissions du module.
  87      *               Définit également les répertoires de données à créer pour ce module.
  88      */
  89    function init()
  90    {
  91      $sql = array();
  92          
  93      return $this->_init($sql);
  94    }
  95  
  96    /**
  97     *    \brief      Fonction appelée lors de la désactivation d'un module.
  98     *                Supprime de la base les constantes, boites et permissions du module.
  99     */
 100    function remove()
 101    {
 102      $sql = array();
 103  
 104      return $this->_remove($sql);
 105    }
 106  }
 107  ?>


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