PHP Class Neos\FluidAdaptor\ViewHelpers\Format\CurrencyViewHelper

= Examples = 123.456 123,46 54321 54,321.00 $ {someNumber -> f:format.currency(thousandsSeparator: ',', currencySign: '€')} 54,321,00 € (depending on the value of {someNumber}) {someNumber -> f:format.currency(currencySign: '€', forceLocale: true)} 54.321,00 € (depending on the value of {someNumber} and the current locale) {someNumber -> f:format.currency(currencySign: 'EUR', forceLocale: 'de_DE')} 54.321,00 EUR (depending on the value of {someNumber})
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractLocaleAwareViewHelper
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$numberFormatter Neos\Flow\I18n\Formatter\NumberFormatter

Public Methods

Method Description
render ( string $currencySign = '', string $decimalSeparator = ',', string $thousandsSeparator = '.' ) : string

Method Details

render() public method

public render ( string $currencySign = '', string $decimalSeparator = ',', string $thousandsSeparator = '.' ) : string
$currencySign string (optional) The currency sign, eg $ or €.
$decimalSeparator string (optional) The separator for the decimal point.
$thousandsSeparator string (optional) The thousands separator.
return string the formatted amount.

Property Details

$numberFormatter protected property

protected NumberFormatter,Neos\Flow\I18n\Formatter $numberFormatter
return Neos\Flow\I18n\Formatter\NumberFormatter