PHP Класс Neos\FluidAdaptor\ViewHelpers\Format\PaddingViewHelper

См. также: http://www.php.net/manual/en/function.str_pad.php = Examples = TYPO3 TYPO3 (note the trailing whitespace) TYPO3 TYPO3-=-=- TYPO3 --TYPO3---
Наследование: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractViewHelper
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$escapeChildren boolean

Открытые методы

Метод Описание
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.

Описание методов

render() публичный Метод

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
Результат string The formatted value

renderStatic() публичный статический Метод

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
Результат string

Описание свойств

$escapeChildren защищенное свойство

protected bool $escapeChildren
Результат boolean