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) |
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 a string using PHPs str_pad function.
= Examples =
<f:format.padding padLength="10">TYPO3</f:format.padding>
<output> TYPO3 (note the trailing whitespace) <output>
<f:format.padding padLength="10" padString="-=">TYPO3</f:format.padding>
<output> TYPO3-=-=- </output>
<f:format.padding padLength="10" padString="-" padType="both">TYPO3</f:format.padding>
<output> –TYPO3— </output>
Definition at line 47 of file PaddingViewHelper.php.
render | ( | $padLength, | |
$padString = ' ' , |
|||
$padType = 'right' , |
|||
$value = null |
|||
) |
Pad a string to a certain length with another string
int | $padLength | 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. |
string | $padString | The padding string |
string | $padType | Append the padding at this site (Possible values: right,left,both. Default: right) |
string | $value | string to format |
Definition at line 59 of file PaddingViewHelper.php.
References AbstractViewHelper\buildRenderChildrenClosure().
|
static |
Applies str_pad() on the specified value.
array | $arguments | |
\Closure | $renderChildrenClosure | |
\TYPO3\CMS\Fluid\Core\Rendering\RenderingContextInterface | $renderingContext |
Definition at line 81 of file PaddingViewHelper.php.
References AbstractViewHelper\$renderChildrenClosure.