372
373
374
375
376
377
378
379
380
381
382
383
384
385
|
if ($send_copy)
{
Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $config->get('email_asso'), $subject, $message);
}
return true;
}
public function listAllByCategory($id_category, $only_with_email = false)
{
$where = $only_with_email ? ' AND email IS NOT NULL' : '';
return DB::getInstance()->get('SELECT id, email FROM membres WHERE id_category = ?' . $where, (int)$id_category);
}
|
>
>
>
>
>
>
>
|
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
|
if ($send_copy)
{
Utils::sendEmail(Utils::EMAIL_CONTEXT_BULK, $config->get('email_asso'), $subject, $message);
}
return true;
}
public function listAllEmailsButHidden(): array
{
return DB::getInstance()->get('SELECT id, email FROM membres
WHERE id_category IN (SELECT id FROM users_categories WHERE hidden = 0)
AND email IS NOT NULL AND email != \'\';');
}
public function listAllByCategory($id_category, $only_with_email = false)
{
$where = $only_with_email ? ' AND email IS NOT NULL' : '';
return DB::getInstance()->get('SELECT id, email FROM membres WHERE id_category = ?' . $where, (int)$id_category);
}
|