Method | Description | |
---|---|---|
DBConn ( string $name = 'default' ) : SS_Database | Get the DB connection in a SS 3.1 and 3.2+ compatible way | |
get_current_locale ( ) : string | Get the current locale. | |
install_locale ( string $locale ) | Set/Install the given locale. | |
price_for_display ( mixed $price ) : Money | Convert a numeric price to the shop currency |
public static get_current_locale ( ) : string | ||
return | string | the locale in use |
public static install_locale ( string $locale ) | ||
$locale | string | the locale to install |
public static price_for_display ( mixed $price ) : Money | ||
$price | mixed | the price to convert |
return | Money | the price wrapped in a Money DBField to be used for templates or similar |