From 7705c6408c801dcd42d48979017fe43551f5e6cf Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 27 Nov 2017 21:28:19 -0800 Subject: [PATCH] CRM_Mailing - Flag methods made redundant by FlexMailer --- CRM/Mailing/BAO/Mailing.php | 13 ++++++++++++- CRM/Mailing/BAO/MailingJob.php | 5 +++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/CRM/Mailing/BAO/Mailing.php b/CRM/Mailing/BAO/Mailing.php index fb5b8f13e0..a7665a36a4 100644 --- a/CRM/Mailing/BAO/Mailing.php +++ b/CRM/Mailing/BAO/Mailing.php @@ -712,10 +712,12 @@ ORDER BY {$orderBy} } /** - * * Prepares the text and html templates * for generating the emails and returns a copy of the * prepared templates + * + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor. */ private function getPreparedTemplates() { if (!$this->preparedTemplates) { @@ -1166,6 +1168,8 @@ ORDER BY civicrm_email.is_bulkmail DESC /** * Compose a message. * + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor. * @param int $job_id * ID of the Job associated with this message. * @param int $event_queue_id @@ -1434,6 +1438,8 @@ ORDER BY civicrm_email.is_bulkmail DESC * * Get mailing object and replaces subscribeInvite, domain and mailing tokens. * + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor. * @param CRM_Mailing_BAO_Mailing $mailing */ public static function tokenReplace(&$mailing) { @@ -1457,6 +1463,9 @@ ORDER BY civicrm_email.is_bulkmail DESC /** * Get data to resolve tokens. * + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor. + * * @param array $token_a * @param bool $html * Whether to encode the token result for use in HTML email @@ -2672,6 +2681,8 @@ LEFT JOIN civicrm_mailing_group g ON g.mailing_id = m.id } /** + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer/TokenProcessor. * @return array */ public function getReturnProperties() { diff --git a/CRM/Mailing/BAO/MailingJob.php b/CRM/Mailing/BAO/MailingJob.php index 01251872e5..9818bacd2f 100644 --- a/CRM/Mailing/BAO/MailingJob.php +++ b/CRM/Mailing/BAO/MailingJob.php @@ -498,10 +498,13 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) /** * Send the mailing. * + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer. * @param object $mailer * A Mail object to send the messages. * * @param array $testParams + * @return bool */ public function deliver(&$mailer, $testParams = NULL) { if (\Civi::settings()->get('experimentalFlexMailerEngine')) { @@ -583,6 +586,8 @@ VALUES (%1, %2, %3, %4, %5, %6, %7) } /** + * @deprecated + * This is used by CiviMail but will be made redundant by FlexMailer. * @param array $fields * List of intended recipients. * Each recipient is an array with keys 'hash', 'contact_id', 'email', etc. -- 2.25.1