PHP Класс 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})
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractLocaleAwareViewHelper
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$numberFormatter Neos\Flow\I18n\Formatter\NumberFormatter

Открытые методы

Метод Описание
render ( string $currencySign = '', string $decimalSeparator = ',', string $thousandsSeparator = '.' ) : string

Описание методов

render() публичный Метод

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.
Результат string the formatted amount.

Описание свойств

$numberFormatter защищенное свойство

protected NumberFormatter,Neos\Flow\I18n\Formatter $numberFormatter
Результат Neos\Flow\I18n\Formatter\NumberFormatter