From 6676690f717e09dbfc3aabe324bd4e864a523bd9 Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Thu, 2 May 2013 22:26:05 -0700 Subject: [PATCH] Actually removed accountOptionValues() method and variable from CRM_Core_PseudoConstant. CRM-12464 ---------------------------------------- * CRM-12464: http://issues.civicrm.org/jira/browse/CRM-12464 --- CRM/Core/PseudoConstant.php | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/CRM/Core/PseudoConstant.php b/CRM/Core/PseudoConstant.php index 656bed77e6..e795035c22 100644 --- a/CRM/Core/PseudoConstant.php +++ b/CRM/Core/PseudoConstant.php @@ -196,13 +196,6 @@ class CRM_Core_PseudoConstant { */ private static $extensions; - /** - * Financial Account Type - * @var array - * @static - */ - private static $accountOptionValues; - /** * Get options for a given field. * @param String $daoName @@ -1638,30 +1631,5 @@ WHERE id = %1 public static function getModuleExtensions($fresh = FALSE) { return CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles($fresh); } - - /** - * Get all options values - * - * The static array option values is returned - * - * @access public - * @static - * - * @param boolean $optionGroupName - get All Option Group values- default is to get only active ones. - * - * @return array - array reference of all Option Group Name - * - */ - public static function accountOptionValues($optionGroupName, $id = null, $condition = null) { - $cacheKey = $optionGroupName . '_' . $condition; - if (empty(self::$accountOptionValues[$cacheKey])) { - self::$accountOptionValues[$cacheKey] = CRM_Core_OptionGroup::values($optionGroupName, false, false, false, $condition); - } - if ($id) { - return CRM_Utils_Array::value($id, self::$accountOptionValues[$cacheKey]); - } - - return self::$accountOptionValues[$cacheKey]; - } } -- 2.25.1