PHP Class Neos\FluidAdaptor\ViewHelpers\Format\PaddingViewHelper

See also: http://www.php.net/manual/en/function.str_pad.php = Examples = TYPO3 TYPO3 (note the trailing whitespace) TYPO3 TYPO3-=-=- TYPO3 --TYPO3---
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$escapeChildren boolean

Public Methods

Method Description
render ( integer $padLength, string $padString = ' ', string $padType = 'right', string $value = null ) : string Pad a string to a certain length with another string
renderStatic ( array $arguments, Closure $renderChildrenClosure, TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext ) : string Applies str_pad() on the specified value.

Method Details

render() public method

Pad a string to a certain length with another string
public render ( integer $padLength, string $padString = ' ', string $padType = 'right', string $value = null ) : string
$padLength integer Length of the resulting string. If the value of pad_length is negative or less than the length of the input string, no padding takes place.
$padString string The padding string
$padType string Append the padding at this site (Possible values: right,left,both. Default: right)
$value string string to format
return string The formatted value

renderStatic() public static method

Applies str_pad() 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
return string

Property Details

$escapeChildren protected property

protected bool $escapeChildren
return boolean