From 45b145a6000922ecc63814378efeddb7697d9bc9 Mon Sep 17 00:00:00 2001 From: Bradley Taylor Date: Sun, 6 Mar 2022 14:03:28 +0000 Subject: [PATCH] Mark AJAX methods as static --- CRM/Campaign/Page/AJAX.php | 8 ++++---- CRM/UF/Page/AJAX.php | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CRM/Campaign/Page/AJAX.php b/CRM/Campaign/Page/AJAX.php index e2d4d6ff02..8f362d591d 100644 --- a/CRM/Campaign/Page/AJAX.php +++ b/CRM/Campaign/Page/AJAX.php @@ -349,7 +349,7 @@ class CRM_Campaign_Page_AJAX { CRM_Utils_System::civiExit(); } - public function processVoterData() { + public static function processVoterData() { $status = NULL; $operation = CRM_Utils_Type::escape($_POST['operation'], 'String'); if ($operation == 'release') { @@ -477,7 +477,7 @@ class CRM_Campaign_Page_AJAX { CRM_Utils_JSON::output(['status' => $status]); } - public function campaignGroups() { + public static function campaignGroups() { $surveyId = CRM_Utils_Request::retrieve('survey_id', 'Positive', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST' ); @@ -621,7 +621,7 @@ class CRM_Campaign_Page_AJAX { * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353. * @deprecated */ - public function surveyList() { + public static function surveyList() { //get the search criteria params. $searchCriteria = CRM_Utils_Request::retrieve('searchCriteria', 'String', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST'); $searchParams = explode(',', $searchCriteria); @@ -726,7 +726,7 @@ class CRM_Campaign_Page_AJAX { * This function uses the deprecated v1 datatable api and needs updating. See CRM-16353. * @deprecated */ - public function petitionList() { + public static function petitionList() { //get the search criteria params. $searchCriteria = CRM_Utils_Request::retrieve('searchCriteria', 'String', CRM_Core_DAO::$_nullObject, FALSE, NULL, 'POST'); $searchParams = explode(',', $searchCriteria); diff --git a/CRM/UF/Page/AJAX.php b/CRM/UF/Page/AJAX.php index 79788616a2..fd1526bd95 100644 --- a/CRM/UF/Page/AJAX.php +++ b/CRM/UF/Page/AJAX.php @@ -24,7 +24,7 @@ class CRM_UF_Page_AJAX { * Function the check whether the field belongs. * to multi-record custom set */ - public function checkIsMultiRecord() { + public static function checkIsMultiRecord() { $customId = $_GET['customId']; $isMultiple = CRM_Core_BAO_CustomField::isMultiRecordField($customId); -- 2.25.1