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
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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