@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | |
59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
60 | 60 | /** |
61 | 61 | * This is the main function that returns the array of emails |
62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function add_to_target($mailing_id) |
67 | 67 | { |
68 | - // phpcs:enable |
|
68 | + // phpcs:enable |
|
69 | 69 | global $conf, $langs; |
70 | 70 | |
71 | 71 | $cibles = array(); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | return ''; |
157 | 157 | } |
158 | 158 | |
159 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
159 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
160 | 160 | /** |
161 | 161 | * Met a jour nombre de destinataires |
162 | 162 | * |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | public function update_nb($mailing_id) |
167 | 167 | { |
168 | - // phpcs:enable |
|
168 | + // phpcs:enable |
|
169 | 169 | // Mise a jour nombre de destinataire dans table des mailings |
170 | 170 | $sql = "SELECT COUNT(*) nb FROM " . MAIN_DB_PREFIX . "mailing_cibles"; |
171 | 171 | $sql .= " WHERE fk_mailing = " . ((int) $mailing_id); |
@@ -278,7 +278,7 @@ discard block |
||
278 | 278 | return $j; |
279 | 279 | } |
280 | 280 | |
281 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
281 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
282 | 282 | /** |
283 | 283 | * Supprime tous les destinataires de la table des cibles |
284 | 284 | * |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | public function clear_target($mailing_id) |
289 | 289 | { |
290 | - // phpcs:enable |
|
290 | + // phpcs:enable |
|
291 | 291 | $sql = "DELETE FROM " . MAIN_DB_PREFIX . "mailing_cibles"; |
292 | 292 | $sql .= " WHERE fk_mailing = " . ((int) $mailing_id); |
293 | 293 |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | |
59 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
59 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
60 | 60 | /** |
61 | 61 | * This is the main function that returns the array of emails |
62 | 62 | * |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | */ |
66 | 66 | public function add_to_target($mailing_id) |
67 | 67 | { |
68 | - // phpcs:enable |
|
68 | + // phpcs:enable |
|
69 | 69 | global $conf, $langs; |
70 | 70 | |
71 | 71 | $cibles = array(); |
@@ -225,7 +225,7 @@ discard block |
||
225 | 225 | } |
226 | 226 | |
227 | 227 | |
228 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
228 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
229 | 229 | /** |
230 | 230 | * Ajoute destinataires dans table des cibles |
231 | 231 | * |
@@ -234,7 +234,7 @@ discard block |
||
234 | 234 | */ |
235 | 235 | public function add_to_target($mailing_id) |
236 | 236 | { |
237 | - // phpcs:enable |
|
237 | + // phpcs:enable |
|
238 | 238 | global $conf, $langs; |
239 | 239 | |
240 | 240 | // Load translation files required by the page |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | return $s; |
123 | 123 | } |
124 | 124 | |
125 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
125 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
126 | 126 | /** |
127 | 127 | * Ajoute destinataires dans table des cibles |
128 | 128 | * |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | */ |
132 | 132 | public function add_to_target($mailing_id) |
133 | 133 | { |
134 | - // phpcs:enable |
|
134 | + // phpcs:enable |
|
135 | 135 | global $conf, $langs, $_FILES; |
136 | 136 | |
137 | 137 | require_once constant('DOL_DOCUMENT_ROOT') . '/core/lib/files.lib.php'; |
@@ -329,7 +329,7 @@ discard block |
||
329 | 329 | } |
330 | 330 | |
331 | 331 | |
332 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
332 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
333 | 333 | /** |
334 | 334 | * Add some recipients into target table |
335 | 335 | * |
@@ -338,7 +338,7 @@ discard block |
||
338 | 338 | */ |
339 | 339 | public function add_to_target($mailing_id) |
340 | 340 | { |
341 | - // phpcs:enable |
|
341 | + // phpcs:enable |
|
342 | 342 | global $conf, $langs; |
343 | 343 | |
344 | 344 | $filter = GETPOST('filter', 'alpha'); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | } |
53 | 53 | |
54 | 54 | |
55 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
55 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
56 | 56 | /** |
57 | 57 | * This is the main function that returns the array of emails |
58 | 58 | * |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | */ |
65 | 65 | public function add_to_target_spec($mailing_id, $socid, $type_of_target, $contactid) |
66 | 66 | { |
67 | - // phpcs:enable |
|
67 | + // phpcs:enable |
|
68 | 68 | global $conf, $langs; |
69 | 69 | |
70 | 70 | dol_syslog(get_class($this) . "::add_to_target_spec socid=" . var_export($socid, true) . ' contactid=' . var_export($contactid, true)); |
@@ -150,7 +150,7 @@ discard block |
||
150 | 150 | } |
151 | 151 | |
152 | 152 | |
153 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
153 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
154 | 154 | /** |
155 | 155 | * Ajoute destinataires dans table des cibles |
156 | 156 | * |
@@ -159,7 +159,7 @@ discard block |
||
159 | 159 | */ |
160 | 160 | public function add_to_target($mailing_id) |
161 | 161 | { |
162 | - // phpcs:enable |
|
162 | + // phpcs:enable |
|
163 | 163 | global $conf, $langs; |
164 | 164 | $langs->load("companies"); |
165 | 165 |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | } |
79 | 79 | |
80 | 80 | |
81 | - // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
81 | + // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps |
|
82 | 82 | /** |
83 | 83 | * This is the main function that returns the array of emails |
84 | 84 | * |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | { |
90 | 90 | global $conf; |
91 | 91 | |
92 | - // phpcs:enable |
|
92 | + // phpcs:enable |
|
93 | 93 | $key = GETPOSTINT('filter'); |
94 | 94 | |
95 | 95 | $cibles = array(); |