48 $this->family =
"interface";
50 $this->module_position =
'23';
53 $this->
name = preg_replace(
'/^mod/i',
'', get_class($this));
56 $this->version =
'dolibarr';
57 $this->const_name =
'MAIN_MODULE_'.strtoupper($this->
name);
58 $this->picto =
'email';
61 $this->dirs = array(
"/mailing/temp");
64 $this->hidden =
false;
65 $this->depends = array();
66 $this->requiredby = array();
67 $this->conflictwith = array();
68 $this->phpmin = array(7, 0);
69 $this->langfiles = array(
"mails");
72 $this->config_page_url = array(
"mailing.php");
75 $this->
const = array();
78 $this->
const[$r][0] =
"MAILING_CONTACT_DEFAULT_BULK_STATUS";
79 $this->
const[$r][1] =
"chaine";
80 $this->
const[$r][2] =
"0";
81 $this->
const[$r][3] =
'Default value for field "Refuse bulk email" when creating a contact';
82 $this->
const[$r][4] = 0;
86 $this->boxes = array();
89 $this->rights = array();
90 $this->rights_class =
'mailing';
94 $this->rights[$r][0] = 221;
95 $this->rights[$r][1] =
'Consulter les mailings';
96 $this->rights[$r][2] =
'r';
97 $this->rights[$r][3] = 0;
98 $this->rights[$r][4] =
'lire';
101 $this->rights[$r][0] = 222;
102 $this->rights[$r][1] =
'Creer/modifier les mailings (sujet, destinataires...)';
103 $this->rights[$r][2] =
'w';
104 $this->rights[$r][3] = 0;
105 $this->rights[$r][4] =
'creer';
108 $this->rights[$r][0] = 223;
109 $this->rights[$r][1] =
'Valider les mailings (permet leur envoi)';
110 $this->rights[$r][2] =
'w';
111 $this->rights[$r][3] = 0;
112 $this->rights[$r][4] =
'valider';
115 $this->rights[$r][0] = 229;
116 $this->rights[$r][1] =
'Supprimer les mailings';
117 $this->rights[$r][2] =
'd';
118 $this->rights[$r][3] = 0;
119 $this->rights[$r][4] =
'supprimer';
122 $this->rights[$r][0] = 237;
123 $this->rights[$r][1] =
'View recipients and info';
124 $this->rights[$r][2] =
'r';
125 $this->rights[$r][3] = 0;
126 $this->rights[$r][4] =
'mailing_advance';
127 $this->rights[$r][5] =
'recipient';
130 $this->rights[$r][0] = 238;
131 $this->rights[$r][1] =
'Manually send mailings';
132 $this->rights[$r][2] =
'w';
133 $this->rights[$r][3] = 0;
134 $this->rights[$r][4] =
'mailing_advance';
135 $this->rights[$r][5] =
'send';
138 $this->rights[$r][0] = 239;
139 $this->rights[$r][1] =
'Delete mailings after validation and/or sent';
140 $this->rights[$r][2] =
'd';
141 $this->rights[$r][3] = 0;
142 $this->rights[$r][4] =
'mailing_advance';
143 $this->rights[$r][5] =
'delete';