27 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
48 $this->family =
"technic";
50 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
51 $this->
description =
"Ajout de files d'informations RSS dans les ecrans Dolibarr";
53 $this->version =
'dolibarr';
54 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
58 $this->dirs = array(
"/externalrss/temp");
61 $this->config_page_url = array(
"external_rss.php");
64 $this->depends = array();
65 $this->requiredby = array();
66 $this->phpmin = array(4, 2, 0);
67 $this->phpmax = array();
70 $this->
const = array();
73 $this->boxes = array();
77 $this->rights = array();
78 $this->rights_class =
'externalrss';
89 public function init($options =
'')
96 $this->boxes = array();
97 $sql =
"select name, value from ".MAIN_DB_PREFIX.
"const";
98 $sql .=
" WHERE name like 'EXTERNAL_RSS_TITLE_%'";
99 $sql .=
" AND entity = ".$conf->entity;
100 $result = $this->
db->query($sql);
103 while ($obj = $this->
db->fetch_object($result))
105 if (preg_match(
'/EXTERNAL_RSS_TITLE_([0-9]+)/i', $obj->name, $reg))
109 $this->boxes[$reg[1]][
'file'] =
"box_external_rss.php";
110 $this->boxes[$reg[1]][
'note'] = $reg[1].
" (".$obj->value.
")";
113 $this->
db->free($result);
118 return $this->
_init($sql, $options);
129 public function remove($options =
'')
134 $this->boxes[0][
'file'] =
"box_external_rss.php";
136 return $this->
_remove($sql, $options);
</td > param sortfield sortorder printFieldListOption< tdclass="liste_titremaxwidthsearchright"></td ></tr >< trclass="liste_titre">< inputtype="checkbox"onClick="toggle(this)"/> Ref p ref Label p label Duration p duration center DesiredStock p desiredstock right StockLimitShort p seuil_stock_alerte right stock_physique right stock_real_warehouse right Ordered right StockToBuy right SupplierRef right param sortfield sortorder printFieldListTitle warehouseinternal SELECT description FROM product_lang WHERE qty< br > qty qty qty StockTooLow StockTooLow help help help< trclass="oddeven">< td >< inputtype="checkbox"class="check"name="choose'.$i.'"></td >< tdclass="nowrap"> stock</td >< td >< inputtype="hidden"name="desc'.$i.'"value="'.dol_escape_htmltag($objp-> description
Only used if Module[ID]Desc translation string is not found.
$conf db name
Only used if Module[ID]Name translation string is not found.
$conf db
API class for accounts.
_remove($array_sql, $options= '')
Disable function.
_init($array_sql, $options= '')
Enables a module.