49 $this->family =
"interface";
51 $this->module_position =
'23';
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(7, 0);
70 $this->langfiles = array(
"mails");
73 $this->config_page_url = array(
"mailing.php");
76 $this->
const = array();
79 $this->
const[$r][0] =
"MAILING_CONTACT_DEFAULT_BULK_STATUS";
80 $this->
const[$r][1] =
"chaine";
81 $this->
const[$r][2] =
"0";
82 $this->
const[$r][3] =
'Default value for field "Refuse bulk email" when creating a contact';
83 $this->
const[$r][4] = 0;
87 $this->boxes = array();
90 $this->rights = array();
91 $this->rights_class =
'mailing';
95 $this->rights[$r][0] = 221;
96 $this->rights[$r][1] =
'Consulter les mailings';
97 $this->rights[$r][2] =
'r';
98 $this->rights[$r][3] = 0;
99 $this->rights[$r][4] =
'lire';
102 $this->rights[$r][0] = 222;
103 $this->rights[$r][1] =
'Creer/modifier les mailings (sujet, destinataires...)';
104 $this->rights[$r][2] =
'w';
105 $this->rights[$r][3] = 0;
106 $this->rights[$r][4] =
'creer';
109 $this->rights[$r][0] = 223;
110 $this->rights[$r][1] =
'Valider les mailings (permet leur envoi)';
111 $this->rights[$r][2] =
'w';
112 $this->rights[$r][3] = 0;
113 $this->rights[$r][4] =
'valider';
116 $this->rights[$r][0] = 229;
117 $this->rights[$r][1] =
'Supprimer les mailings';
118 $this->rights[$r][2] =
'd';
119 $this->rights[$r][3] = 0;
120 $this->rights[$r][4] =
'supprimer';
123 $this->rights[$r][0] = 237;
124 $this->rights[$r][1] =
'View recipients and info';
125 $this->rights[$r][2] =
'r';
126 $this->rights[$r][3] = 0;
127 $this->rights[$r][4] =
'mailing_advance';
128 $this->rights[$r][5] =
'recipient';
131 $this->rights[$r][0] = 238;
132 $this->rights[$r][1] =
'Manually send mailings';
133 $this->rights[$r][2] =
'w';
134 $this->rights[$r][3] = 0;
135 $this->rights[$r][4] =
'mailing_advance';
136 $this->rights[$r][5] =
'send';
139 $this->rights[$r][0] = 239;
140 $this->rights[$r][1] =
'Delete mailings after validation and/or sent';
141 $this->rights[$r][2] =
'd';
142 $this->rights[$r][3] = 0;
143 $this->rights[$r][4] =
'mailing_advance';
144 $this->rights[$r][5] =
'delete';