28 include_once DOL_DOCUMENT_ROOT.
'/core/modules/DolibarrModules.class.php';
49 $this->family =
"interface";
51 $this->module_position =
'22';
54 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
57 $this->version =
'dolibarr';
58 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
59 $this->picto =
'email';
62 $this->dirs = array(
"/mailing/temp");
65 $this->hidden =
false;
66 $this->depends = array();
67 $this->requiredby = array();
68 $this->conflictwith = array();
69 $this->phpmin = array(5, 4);
70 $this->langfiles = array(
"mails");
73 $this->config_page_url = array(
"mailing.php");
76 $this->
const = array();
79 $this->boxes = array();
82 $this->rights = array();
83 $this->rights_class =
'mailing';
87 $this->rights[$r][0] = 221;
88 $this->rights[$r][1] =
'Consulter les mailings';
89 $this->rights[$r][2] =
'r';
90 $this->rights[$r][3] = 0;
91 $this->rights[$r][4] =
'lire';
94 $this->rights[$r][0] = 222;
95 $this->rights[$r][1] =
'Creer/modifier les mailings (sujet, destinataires...)';
96 $this->rights[$r][2] =
'w';
97 $this->rights[$r][3] = 0;
98 $this->rights[$r][4] =
'creer';
101 $this->rights[$r][0] = 223;
102 $this->rights[$r][1] =
'Valider les mailings (permet leur envoi)';
103 $this->rights[$r][2] =
'w';
104 $this->rights[$r][3] = 0;
105 $this->rights[$r][4] =
'valider';
108 $this->rights[$r][0] = 229;
109 $this->rights[$r][1] =
'Supprimer les mailings';
110 $this->rights[$r][2] =
'd';
111 $this->rights[$r][3] = 0;
112 $this->rights[$r][4] =
'supprimer';
115 $this->rights[$r][0] = 237;
116 $this->rights[$r][1] =
'View recipients and info';
117 $this->rights[$r][2] =
'r';
118 $this->rights[$r][3] = 0;
119 $this->rights[$r][4] =
'mailing_advance';
120 $this->rights[$r][5] =
'recipient';
123 $this->rights[$r][0] = 238;
124 $this->rights[$r][1] =
'Manually send mailings';
125 $this->rights[$r][2] =
'w';
126 $this->rights[$r][3] = 0;
127 $this->rights[$r][4] =
'mailing_advance';
128 $this->rights[$r][5] =
'send';
131 $this->rights[$r][0] = 239;
132 $this->rights[$r][1] =
'Delete mailings after validation and/or sent';
133 $this->rights[$r][2] =
'd';
134 $this->rights[$r][3] = 0;
135 $this->rights[$r][4] =
'mailing_advance';
136 $this->rights[$r][5] =
'delete';
152 public function init($options =
'')
155 $this->
remove($options);
159 return $this->
_init($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.
__construct($db)
Constructor.
init($options= '')
Function called when module is enabled.
_init($array_sql, $options= '')
Enables a module.
Class to describe and enable module Mailing.