public static getCurrencyFor ( integer $idsite ) : string | ||
$idsite | integer | The site ID. |
Résultat | string |
public static function getCurrencyFor($idsite)
{
return self::getFor($idsite, 'currency');
}
/** * Returns the currency symbol for a site. * * @param int $idSite The ID of the site to return the currency symbol for. * @return string eg, `'$'`. * @api */ public static function getCurrencySymbol($idSite) { $symbols = self::getCurrencyList(); $currency = Site::getCurrencyFor($idSite); if (isset($symbols[$currency])) { return $symbols[$currency][0]; } return ''; }