diff --git a/CRM/Admin/Page/EventTemplate.php b/CRM/Admin/Page/EventTemplate.php index 98b5d9b8d0e..bee768e0869 100644 --- a/CRM/Admin/Page/EventTemplate.php +++ b/CRM/Admin/Page/EventTemplate.php @@ -76,7 +76,7 @@ public function browse() { $eventTypes = CRM_Event_PseudoConstant::eventType(); $participantRoles = CRM_Event_PseudoConstant::participantRole(); - $participantListings = CRM_Event_PseudoConstant::participantListing(); + $participantListings = CRM_Event_BAO_Event::buildOptions('participant_listing_id'); //find all event templates. $eventTemplate->is_template = TRUE; diff --git a/CRM/Contribute/PseudoConstant.php b/CRM/Contribute/PseudoConstant.php index 22056cc40ab..f73c113ee75 100644 --- a/CRM/Contribute/PseudoConstant.php +++ b/CRM/Contribute/PseudoConstant.php @@ -68,6 +68,7 @@ class CRM_Contribute_PseudoConstant extends CRM_Core_PseudoConstant { /** * Status of personal campaign page + * @deprecated * @var array */ private static $pcpStatus; @@ -342,12 +343,13 @@ public static function &pcPage($pageType = NULL, $id = NULL) { * * The static array pcpStatus is returned * - * + * @deprecated * @param string $column * @return array * array reference of all PCP activity statuses */ public static function &pcpStatus($column = 'label') { + CRM_Core_Error::deprecatedFunctionWarning('Function pcpStatus will be removed'); if (NULL === self::$pcpStatus) { self::$pcpStatus = []; } diff --git a/CRM/Event/PseudoConstant.php b/CRM/Event/PseudoConstant.php index 780adc60b11..4b4f75f2e73 100644 --- a/CRM/Event/PseudoConstant.php +++ b/CRM/Event/PseudoConstant.php @@ -46,7 +46,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant { /** * Participant Listing - * + * @deprecated * @var array */ private static $participantListing; @@ -66,6 +66,7 @@ class CRM_Event_PseudoConstant extends CRM_Core_PseudoConstant { /** * Personal campaign pages + * @deprecated * @var array */ private static $pcPage; @@ -205,13 +206,13 @@ public static function &participantRole($id = NULL, $cond = NULL) { /** * Get all the participant listings. * - * + * @deprecated * @param int $id - * * @return array|string * array reference of all participant listings if any */ public static function &participantListing($id = NULL) { + CRM_Core_Error::deprecatedFunctionWarning('Function participantListing will be removed'); if (!self::$participantListing) { self::$participantListing = []; self::$participantListing = CRM_Core_OptionGroup::values('participant_listing'); @@ -285,12 +286,13 @@ public static function flush($name = 'cache') { /** * Get all the Personal campaign pages. * - * + * @deprecated * @param int $id * @return array * array reference of all pcp if any */ public static function &pcPage($id = NULL) { + CRM_Core_Error::deprecatedFunctionWarning('Function pcPage will be removed'); if (!self::$pcPage) { CRM_Core_PseudoConstant::populate(self::$pcPage, 'CRM_PCP_DAO_PCP',