![]() |
TYPO3
7.6
|
Static Public Member Functions | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
![]() | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
![]() | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Additional Inherited Members | |
![]() | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
![]() | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
Formats a given float to a currency representation.
= Examples =
<f:format.currency>123.456</f:format.currency>
<output> 123,46 </output>
<f:format.currency currencySign="$" decimalSeparator="." thousandsSeparator="," prependCurrency="TRUE" separateCurrency="FALSE" decimals="2">54321</f:format.currency>
<output> $54,321.00 </output>
{someNumber -> f:format.currency(thousandsSeparator: ',', currencySign: '€')}
<output> 54,321,00 € (depending on the value of {someNumber}) </output>
Definition at line 47 of file CurrencyViewHelper.php.
render | ( | $currencySign = '' , |
|
$decimalSeparator = ',' , |
|||
$thousandsSeparator = '.' , |
|||
$prependCurrency = false , |
|||
$separateCurrency = true , |
|||
$decimals = 2 |
|||
) |
string | $currencySign | (optional) The currency sign, eg $ or €. |
string | $decimalSeparator | (optional) The separator for the decimal point. |
string | $thousandsSeparator | (optional) The thousands separator. |
bool | $prependCurrency | (optional) Select if the curreny sign should be prepended |
bool | $separateCurrency | (optional) Separate the currency sign from the number by a single space, defaults to true due to backwards compatibility |
int | $decimals | (optional) Set decimals places. |
Definition at line 59 of file CurrencyViewHelper.php.
References AbstractViewHelper\buildRenderChildrenClosure().
|
static |
array | $arguments | |
callable | $renderChildrenClosure | |
RenderingContextInterface | $renderingContext |
Definition at line 82 of file CurrencyViewHelper.php.
References AbstractViewHelper\$renderChildrenClosure.