Skip to content
Snippets Groups Projects
Commit 6676690f authored by Allen Shaw's avatar Allen Shaw Committed by colemanw
Browse files

Actually removed accountOptionValues() method and variable from CRM_Core_PseudoConstant. CRM-12464

----------------------------------------
* CRM-12464:
  http://issues.civicrm.org/jira/browse/CRM-12464
parent 7611ae71
Branches
Tags
No related merge requests found
......@@ -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];
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment