public static function getCurrencyForLanguage($language_id) { $currency = CurrencyModel::find_by_language_id($language_id); if ($currency == null) { // fallback to default... return CurrencyModel::getDefaultCurrency(); } return $currency; }