*/
class CRM_Case_XMLProcessor {
- /**
- * FIXME: This does *NOT* belong in a static property, but we're too late in
- * the 4.5-cycle to do the necessary cleanup.
- *
- * Format is [int $id => string $relTypeCname].
- *
- * @var array|null
- */
- public static $activityTypes = NULL;
-
/**
* @param $caseType
*
return $caseType;
}
- /**
- * @deprecated
- *
- * @param bool $indexName
- * @param bool $all
- *
- * @return array
- */
- public static function &allActivityTypes($indexName = TRUE, $all = FALSE) {
- CRM_Core_Error::deprecatedFunctionWarning('CRM_Case_PseudoConstant::caseActivityType');
- if (self::$activityTypes === NULL) {
- self::$activityTypes = CRM_Case_PseudoConstant::caseActivityType($indexName, $all);
- }
- return self::$activityTypes;
- }
-
/**
* Get all relationship type display labels (not machine names)
*
* FIXME: This should not exist
*/
public static function flushStaticCaches() {
- self::$activityTypes = NULL;
unset(Civi::$statics[__CLASS__]['reltypes']);
}