27include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
 
   47    $this->family = 
"technic";
 
   49    $this->
name = preg_replace(
'/^mod/i', 
'', get_class($this));
 
   50    $this->
description = 
"Ajout de files d'informations RSS dans les ecrans Dolibarr";
 
   52    $this->version = 
'dolibarr';
 
   53    $this->const_name = 
'MAIN_MODULE_'.strtoupper($this->
name);
 
   57    $this->dirs = array(
"/externalrss/temp");
 
   60    $this->config_page_url = array(
"external_rss.php");
 
   63    $this->depends = array();
 
   64    $this->requiredby = array();
 
   65    $this->phpmin = array(7, 0);
 
   66    $this->phpmax = array();
 
   69    $this->
const = array();
 
   72    $this->boxes = array();
 
   76    $this->rights = array();
 
   77    $this->rights_class = 
'externalrss';
 
 
   88  public function init($options = 
'')
 
   95    $this->boxes = array();
 
   96    $sql = 
"select name, value from ".MAIN_DB_PREFIX.
"const";
 
   97    $sql .= 
" WHERE name like 'EXTERNAL_RSS_TITLE_%'";
 
   98    $sql .= 
" AND entity = ".$conf->entity;
 
   99    $result = $this->db->query($sql);
 
  101      while ($obj = $this->db->fetch_object($result)) {
 
  103        if (preg_match(
'/EXTERNAL_RSS_TITLE_([0-9]+)/i', $obj->name, $reg)) {
 
  106          $this->boxes[$reg[1]][
'file'] = 
"box_external_rss.php";
 
  107          $this->boxes[$reg[1]][
'note'] = $reg[1].
" (".$obj->value.
")";
 
  110      $this->db->free($result);
 
  115    return $this->
_init($sql, $options);
 
 
  126  public function remove($options = 
'')
 
  131    $this->boxes[0][
'file'] = 
"box_external_rss.php";
 
  133    return $this->
_remove($sql, $options);
 
 
 
_init($array_sql, $options='')
Enables a module.
_remove($array_sql, $options='')
Disable function.
print $script_file $mode $langs defaultlang(is_numeric($duration_value) ? " delay=". $duration_value :"").(is_numeric($duration_value2) ? " after cd cd cd description as description
Only used if Module[ID]Desc translation string is not found.
global $conf
The following vars must be defined: $type2label $form $conf, $lang, The following vars may also be de...
$conf db name
Only used if Module[ID]Name translation string is not found.