TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
ValidationResultsViewHelper Class Reference
Inheritance diagram for ValidationResultsViewHelper:
AbstractViewHelper

Public Member Functions

 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractViewHelper
 setRenderingContext (\TYPO3Fluid\Fluid\Core\Rendering\RenderingContextInterface $renderingContext)
 
 injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager)
 
 injectReflectionService (\TYPO3\CMS\Extbase\Reflection\ReflectionService $reflectionService)
 
 prepareArguments ()
 

Protected Attributes

 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Additional Inherited Members

- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Detailed Description

Validation results view helper

= Examples =

<f:form.validationResults> <f:if condition="{validationResults.flattenedErrors}">

f:for each="{validationResults.flattenedErrors}" as="errors" key="propertyPath"> {propertyPath}

f:for each="{errors}" as="error"> {error.code}: {error} </f:for> </f:for> </f:if> </f:form.validationResults> <output>

  • 1234567890: Validation errors for argument "newBlog"

</output>

<f:form.validationResults for="someProperty"> <f:if condition="{validationResults.flattenedErrors}">

f:for each="{validationResults.errors}" as="error"> {error.code}: {error} </f:for> </f:if> </f:form.validationResults> <output>

  • 1234567890: Some error message

</output>

Definition at line 64 of file ValidationResultsViewHelper.php.

Member Function Documentation

initializeArguments ( )

Initialize arguments

Returns
void

Definition at line 79 of file ValidationResultsViewHelper.php.

render ( )

Iterates through selected errors of the request.

Returns
string Rendered string

Definition at line 92 of file ValidationResultsViewHelper.php.

Member Data Documentation

$escapeOutput = false
protected

Definition at line 71 of file ValidationResultsViewHelper.php.