TYPO3
7.6
|
Static Public Member Functions | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure, RenderingContextInterface $renderingContext) |
Static Public Member Functions inherited from AbstractViewHelper | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Static Public Member Functions inherited from CompilableInterface | |
static | renderStatic (array $arguments,\Closure $renderChildrenClosure,\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface $renderingContext) |
Static Protected Attributes | |
static | $units = array() |
Additional Inherited Members | |
Protected Member Functions inherited from AbstractViewHelper | |
registerArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
overrideArgument ($name, $type, $description, $required=false, $defaultValue=null) | |
callRenderMethod () | |
getLogger () | |
buildRenderChildrenClosure () | |
hasArgument ($argumentName) | |
Protected Attributes inherited from AbstractViewHelper | |
$arguments | |
$templateVariableContainer | |
$controllerContext | |
$renderingContext | |
$renderChildrenClosure = null | |
$viewHelperVariableContainer | |
$objectManager | |
$escapingInterceptorEnabled = true | |
Formats an integer with a byte count into human-readable form.
= Examples =
{fileSize -> f:format.bytes()}
<output> 123 KB // depending on the value of {fileSize} </output>
{fileSize -> f:format.bytes(decimals: 2, decimalSeparator: ',', thousandsSeparator: ',')}
<output> 1,023.00 B // depending on the value of {fileSize} </output>
Definition at line 43 of file BytesViewHelper.php.
render | ( | $value = null , |
|
$decimals = 0 , |
|||
$decimalSeparator = '.' , |
|||
$thousandsSeparator = ',' |
|||
) |
Render the supplied byte count as a human readable string.
int | $value | The incoming data to convert, or NULL if VH children should be used |
int | $decimals | The number of digits after the decimal point |
string | $decimalSeparator | The decimal point character |
string | $thousandsSeparator | The character for grouping the thousand digits |
Definition at line 60 of file BytesViewHelper.php.
References AbstractViewHelper\buildRenderChildrenClosure().
|
static |
Applies htmlspecialchars() on the specified value.
array | $arguments | |
\Closure | $renderChildrenClosure | |
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext |
Definition at line 82 of file BytesViewHelper.php.
References AbstractViewHelper\$renderChildrenClosure, LocalizationUtility\translate(), and GeneralUtility\trimExplode().
|
staticprotected |
Definition at line 48 of file BytesViewHelper.php.