Sunnysideup\Ecommerce\Money\EcommerceMoney
Synopsis
class EcommerceMoney
extends Extension
{
- // members
- private static string $default_format = 'NiceShortSymbol';
- // methods
- public static string get_default_symbol()
- public static string get_short_symbol()
- public static string get_long_symbol()
- public string NiceDefaultSymbol()
- public string NiceShortSymbol()
- public string NiceLongSymbol()
- public string SymbolNumberAndCode()
- public string NiceDefaultFormat()
Hierarchy
Extends
- SilverStripe\Core\Extension
Members
private
- $default_format — string
Methods
public
- NiceDefaultFormat() — returns the default format for a site for currency.
- NiceDefaultSymbol() — returns the default symbol for a site.
- NiceLongSymbol() — returns the long symbol for a site.
- NiceShortSymbol() — returns the short symbol for a site.
- SymbolNumberAndCode() — returns a currency like this: 8,001 usd / 12.12 nzd.
- get_default_symbol() — returns the symbol for a currency, e.g. $.
- get_long_symbol() — returns the long symbol for a currency.
- get_short_symbol() — returns the short symbol for a currency This is shorter than the default one.