From 7cd24d31f42d8f80a64f09d7fe1078ef12da6b25 Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Thu, 13 Nov 2003 14:35:32 +0000 Subject: [PATCH] =?UTF-8?q?R=E9-ecriture=20nouveau=20format?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../includes/modules/modExternalRss.class.php | 32 ++++++++++++------- 1 file changed, 21 insertions(+), 11 deletions(-) diff --git a/htdocs/includes/modules/modExternalRss.class.php b/htdocs/includes/modules/modExternalRss.class.php index d9014071da1..e843302df9e 100644 --- a/htdocs/includes/modules/modExternalRss.class.php +++ b/htdocs/includes/modules/modExternalRss.class.php @@ -19,8 +19,9 @@ * $Source$ * */ +include_once "DolibarrModules.class.php"; -class modExternalRss +class modExternalRss extends DolibarrModules { /* @@ -31,6 +32,21 @@ class modExternalRss Function modExternalRss($DB) { $this->db = $DB ; + + $this->name = "Syndication"; + $this->description = "Module de gestion de syndication de sites externes"; + $this->const_name = "MAIN_MODULE_EXTERNALRSS"; + $this->const_config = MAIN_MODULE_EXTERNALRSS; + + $this->depends = array(); + + $this->boxes = array(); + /* + * Boites + */ + $this->boxes[0][0] = "Syndication"; + $this->boxes[0][1] = "box_external_rss.php"; + } /* * @@ -44,12 +60,9 @@ class modExternalRss * Activation du module */ - $sql = "INSERT INTO llx_boxes_def (name,file) VALUES('Syndication', 'box_external_rss.php');"; + $sql = array(); - if ( $this->db->query($sql) ) - { - - } + return $this->_init($sql); } /* * @@ -57,12 +70,9 @@ class modExternalRss */ Function remove() { - $sql = "DELETE FROM llx_boxes_def WHERE file = 'box_external_rss.php';"; + $sql = array(); - if ( $this->db->query($sql) ) - { - - } + return $this->_remove($sql); } } ?>