class MoneyFormat extends NumberFormat

Methods

__construct( Request $request)

No description

static 
getInstance( Request $request)

No description

string
formatStandardNumber( float $number, string $decimals = null)

Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.

format($number, $decimals = null, $decPoint = null, $thousandsSep = null, $symbol = null)

No description

string
formatStandardMoney( float $number, string $decimals = null)

Get a standard number, with '.' as decimal point no thousands separator, and no currency symbol so that this number can be used to perform calculations.

string
formatByCurrency( float $number, int $decimals = null, string $decPoint = null, string $thousandsSep = null, int|null $currencyId = null)

No description

Details

in NumberFormat at line 21
__construct( Request $request)

Parameters

Request $request

at line 20
static getInstance( Request $request)

Parameters

Request $request

in NumberFormat at line 39
string formatStandardNumber( float $number, string $decimals = null)

Get a standard number, with '.' as decimal point and no thousands separator so that this number can be used to perform calculations.

Parameters

float $number the number
string $decimals number of decimal figures

Return Value

string

at line 38
format($number, $decimals = null, $decPoint = null, $thousandsSep = null, $symbol = null)

Parameters

$number
$decimals
$decPoint
$thousandsSep
$symbol

at line 33
string formatStandardMoney( float $number, string $decimals = null)

Get a standard number, with '.' as decimal point no thousands separator, and no currency symbol so that this number can be used to perform calculations.

Parameters

float $number the number
string $decimals number of decimal figures

Return Value

string

at line 63
string formatByCurrency( float $number, int $decimals = null, string $decPoint = null, string $thousandsSep = null, int|null $currencyId = null)

Parameters

float $number
int $decimals
string $decPoint
string $thousandsSep
int|null $currencyId

Return Value

string