From 15111972153e77e65617b7cc44e73676ed7c2a5f Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Fri, 12 Nov 2021 12:46:34 +1300 Subject: [PATCH] Mark a few more token functions as deprected These are only used by the legacy mailing code or, in some cases, used by unsubscribe where it should use the token processor --- CRM/Utils/Token.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/CRM/Utils/Token.php b/CRM/Utils/Token.php index 1ab9cc2dbf..dea929d99a 100644 --- a/CRM/Utils/Token.php +++ b/CRM/Utils/Token.php @@ -213,6 +213,8 @@ class CRM_Utils_Token { /** * Replace all the domain-level tokens in $str * + * @deprecated + * * @param string $str * The string with tokens to be replaced. * @param object $domain @@ -251,6 +253,10 @@ class CRM_Utils_Token { } /** + * Do not use. + * + * @deprecated + * * @param string $token * @param CRM_Core_BAO_Domain $domain * @param bool $html @@ -367,6 +373,8 @@ class CRM_Utils_Token { * * @return string * The processed string + * + * @deprecated */ public static function &replaceMailingTokens( $str, @@ -534,6 +542,8 @@ class CRM_Utils_Token { } /** + * @deprecated + * * @param $token * @param $addresses * @param $urls @@ -1281,6 +1291,8 @@ class CRM_Utils_Token { * @param string $jobID * @return array * contactDetails with hooks swapped out + * + * @deprecated */ public static function getAnonymousTokenDetails($contactIDs = [0], $returnProperties = NULL, -- 2.25.1