From 29c06756cbb0e35731dbf35796c167b70fa62bce Mon Sep 17 00:00:00 2001 From: Eileen McNaughton Date: Wed, 1 Nov 2023 16:09:07 +1300 Subject: [PATCH] Standardise deprecations --- CRM/Contact/BAO/Relationship.php | 8 ++++++-- CRM/Contact/Page/AJAX.php | 4 +++- CRM/Contact/Page/View/Relationship.php | 4 +++- CRM/Contact/Page/View/UserDashBoard.php | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) diff --git a/CRM/Contact/BAO/Relationship.php b/CRM/Contact/BAO/Relationship.php index dacab11fcf..9d231e0fe4 100644 --- a/CRM/Contact/BAO/Relationship.php +++ b/CRM/Contact/BAO/Relationship.php @@ -1807,7 +1807,9 @@ AND cc.sort_name LIKE '%$name%'"; } /** - * DELETEME only-used-by-user-dashboard + * @deprecated since 5.68. Will be removed around 5.74. + * + * Only-used-by-user-dashboard. */ public static function getContactRelationshipSelector(&$params) { // format the params @@ -1950,7 +1952,9 @@ AND cc.sort_name LIKE '%$name%'"; } /** - * DELETEME only-used-by-user-dashboard + * @deprecated since 5.68. Will be removed around 5.74. + * + * Only-used-by-user-dashboard. */ public static function getColumnHeaders() { return [ diff --git a/CRM/Contact/Page/AJAX.php b/CRM/Contact/Page/AJAX.php index c90aa00f82..9cacb36776 100644 --- a/CRM/Contact/Page/AJAX.php +++ b/CRM/Contact/Page/AJAX.php @@ -979,7 +979,9 @@ LIMIT {$offset}, {$rowCount} } /** - * DELETEME only-used-by-user-dashboard + * @deprecated since 5.68. Will be removed around 5.74. + * + * Only-used-by-user-dashboard. */ public static function getContactRelationships() { $contactID = CRM_Utils_Type::escape($_GET['cid'], 'Integer'); diff --git a/CRM/Contact/Page/View/Relationship.php b/CRM/Contact/Page/View/Relationship.php index 0b0bb7eb8c..ec6ad2f88d 100644 --- a/CRM/Contact/Page/View/Relationship.php +++ b/CRM/Contact/Page/View/Relationship.php @@ -227,7 +227,9 @@ class CRM_Contact_Page_View_Relationship extends CRM_Core_Page { } /** - * DELETEME only-used-by-user-dashboard + * @deprecated since 5.68. Will be removed around 5.74. + * + * Only-used-by-user-dashboard. * * @return array * (reference) of action links diff --git a/CRM/Contact/Page/View/UserDashBoard.php b/CRM/Contact/Page/View/UserDashBoard.php index 5ac3aa23bc..5eee298b75 100644 --- a/CRM/Contact/Page/View/UserDashBoard.php +++ b/CRM/Contact/Page/View/UserDashBoard.php @@ -129,7 +129,7 @@ class CRM_Contact_Page_View_UserDashBoard extends CRM_Core_Page { // Relationship section // FIXME - this used to share code with the contact summary "Relationships" tab // now that tab has been switched to use SearchKit, and this ought to be switched as well; - // then remove all code commented with "DELETEME only-used-by-user-dashboard" + // then remove all code commented with "only-used-by-user-dashboard" if (!empty($dashboardOptions['Permissioned Orgs']) && CRM_Core_Permission::check('view my contact')) { $columnHeaders = CRM_Contact_BAO_Relationship::getColumnHeaders(); $contactRelationships = $selector = NULL; -- 2.25.1