static function getUsageByCode($id) { return CRM_CiviDiscount_BAO_Track::getUsage($id, NULL, NULL); }