PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Format\BytesViewHelper

= Examples = {fileSize -> f:format.bytes()} 123 KB depending on the value of {fileSize} {fileSize -> f:format.bytes(decimals: 2, decimalSeparator: ',', thousandsSeparator: ',')} 1,023.00 B depending on the value of {fileSize}
상속: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection

공개 메소드들

메소드 설명
render ( integer $value = null, integer $decimals, string $decimalSeparator = '.', string $thousandsSeparator = ',' ) : string Render the supplied byte count as a human readable string.
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies htmlspecialchars() on the specified value.

메소드 상세

render() 공개 메소드

Render the supplied byte count as a human readable string.
public render ( integer $value = null, integer $decimals, string $decimalSeparator = '.', string $thousandsSeparator = ',' ) : string
$value integer The incoming data to convert, or NULL if VH children should be used
$decimals integer The number of digits after the decimal point
$decimalSeparator string The decimal point character
$thousandsSeparator string The character for grouping the thousand digits
리턴 string Formatted byte count

renderStatic() 공개 정적인 메소드

Applies htmlspecialchars() on the specified value.
public static renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string
$arguments array
$renderChildrenClosure Closure
$renderingContext TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface
리턴 string