fetch()) { if ($indexName) { $index = $dao->name; } else { $index = $dao->value; } $activityTypes[$index] = []; $activityTypes[$index]['id'] = $dao->value; $activityTypes[$index]['label'] = $dao->label; $activityTypes[$index]['name'] = $dao->name; $activityTypes[$index]['icon'] = $dao->icon; $activityTypes[$index]['description'] = $dao->description; } Civi::$statics[__CLASS__]['activityTypeList'][$cache] = $activityTypes; } return Civi::$statics[__CLASS__]['activityTypeList'][$cache]; } /** * Flush given pseudoconstant so it can be reread from db * next time it's requested. * * * @param bool|string $name pseudoconstant to be flushed */ public static function flush($name = 'cache') { if (isset(self::$$name)) { self::$$name = NULL; } } }