TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
NumberViewHelper Class Reference
Inheritance diagram for NumberViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Static Public Member Functions

static renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext)
 

Protected Attributes

 $escapeChildren = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

Formats a number with custom precision, decimal point and grouped thousands.

See also
http://www.php.net/manual/en/function.number-format.php

= Examples =

<f:format.number>423423.234</f:format.number> <output> 423,423.20 </output>

<f:format.number decimals="1" decimalSeparator="," thousandsSeparator=".">423423.234</f:format.number> <output> 423.423,2 </output>

Definition at line 42 of file NumberViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize arguments.

Exceptions
TYPO3Fluid

Definition at line 58 of file NumberViewHelper.php.

static renderStatic ( array  $arguments,
\Closure  $renderChildrenClosure,
RenderingContextInterface  $renderingContext 
)
static

Format the numeric value as a number with grouped thousands, decimal point and precision.

Parameters
array$arguments
\Closure$renderChildrenClosure
RenderingContextInterface$renderingContext
Returns
string The formatted number

Definition at line 76 of file NumberViewHelper.php.

Member Data Documentation

$escapeChildren = false
protected

Definition at line 51 of file NumberViewHelper.php.