* @return null
*/
public static function getLabel($groupName, $value, $onlyActiveValue = TRUE) {
+ Civi::log()->warning('Deprecated function, use CRM_Core_PseudoConstant::getLabel', array('civi.tag' => 'deprecated'));
if (empty($groupName) ||
empty($value)
) {
return NULL;
}
+ Civi::log()->warning('Deprecated function, use CRM_Core_PseudoConstant::getKey', array('civi.tag' => 'deprecated'));
+
$query = "
SELECT v.label as label ,v.{$valueField} as value
FROM civicrm_option_value v,
);
}
+ /**
+ * Flush all the places where option values are cached.
+ *
+ * Note that this is called from CRM_Core_PseudoConstant::flush() so we should resist
+ * the intuitive urge to flush that class.
+ */
public static function flushAll() {
self::$_values = array();
self::$_cache = array();