Actually removed accountOptionValues() method and variable from CRM_Core_PseudoConsta...
authorAllen Shaw <allen@emphanos.com>
Fri, 3 May 2013 05:26:05 +0000 (22:26 -0700)
committerColeman Watts <coleman@civicrm.org>
Thu, 30 May 2013 05:14:04 +0000 (22:14 -0700)
----------------------------------------
* CRM-12464:
  http://issues.civicrm.org/jira/browse/CRM-12464

CRM/Core/PseudoConstant.php

index 656bed77e60c2668c4c9b5681a45200d80037bb0..e795035c221bc936bd7071a69fd83b366177940c 100644 (file)
@@ -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];
-  }
 }