MoneyHelper ​
- Type
- Class
- Namespace
- craft\helpers
- Inherits
- craft\helpers\MoneyHelper
- Since
- 4.0.0
Class MoneyHelper
Public Methods ​
Method | Description |
---|---|
normalizeString() | |
toDecimal() | Convert money object to standard decimal string. |
toMoney() | |
toNumber() | Convert money object to localized decimal string. |
toString() | Convert money object to localized currency string. |
normalizeString()
​
- Since
- 5.2.9
Arguments ​
Returns ​
toDecimal()
​
Convert money object to standard decimal string.
Arguments ​
$value
(mixed
)
Returns ​
toMoney()
​
Arguments ​
$value
(mixed
)
Returns ​
\Money\Money
, false
toNumber()
​
Convert money object to localized decimal string.
Arguments ​
Returns ​
toString()
​
Convert money object to localized currency string.