CurrencySettings
in package

Table of Contents

$bundle  : CurrencyBundle
$defaultCurrency  : mixed
$defaultPosition  : mixed
__construct()  : mixed
getBundle()  : CurrencyBundle
getCurrencyCode()  : string
Retrieve ISO 4217 code of currency
getCurrencyPosition()  : string
Return currency position.
getCurrencySymbol()  : string
Retrieve human readable currency symbol
getDefaultCurrency()  : mixed
getDefaultPosition()  : mixed
getPriceDecimalsCount()  : int
getPriceDecimalsSeparator()  : string
getPriceFormat()  : string
getPriceThousandSeparator()  : string

Properties

$bundle

private CurrencyBundle $bundle

$defaultCurrency

private mixed $defaultCurrency = 'USD'

$defaultPosition

private mixed $defaultPosition = 'before'

Methods

__construct()

public __construct() : mixed
Return values
mixed

getCurrencyCode()

Retrieve ISO 4217 code of currency

public getCurrencyCode() : string
Return values
string

getCurrencyPosition()

Return currency position.

public getCurrencyPosition() : string
Return values
string

getCurrencySymbol()

Retrieve human readable currency symbol

public getCurrencySymbol() : string
Return values
string

getDefaultCurrency()

public getDefaultCurrency() : mixed
Return values
mixed

getDefaultPosition()

public getDefaultPosition() : mixed
Return values
mixed

getPriceDecimalsCount()

public getPriceDecimalsCount() : int
Return values
int

getPriceDecimalsSeparator()

public getPriceDecimalsSeparator() : string
Return values
string

getPriceFormat()

public getPriceFormat([string $currencySymbol = null ][, string $currencyPosition = null ][, bool $asHtml = true ]) : string
Parameters
$currencySymbol : string = null
$currencyPosition : string = null

Possible values: after, before, after_space, before_space

$asHtml : bool = true

Generate HTML instead of plain text

Return values
string

getPriceThousandSeparator()

public getPriceThousandSeparator() : string
Return values
string

Search results