TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
UploadedResourceViewHelper Class Reference
Inheritance diagram for UploadedResourceViewHelper:
UploadViewHelper AbstractFormFieldViewHelper AbstractFormViewHelper AbstractTagBasedViewHelper AbstractViewHelper

Public Member Functions

 injectHashService (\TYPO3\CMS\Extbase\Security\Cryptography\HashService $hashService)
 
 injectPropertyMapper (\TYPO3\CMS\Extbase\Property\PropertyMapper $propertyMapper)
 
 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from UploadViewHelper
 initializeArguments ()
 
 render ()
 
- Public Member Functions inherited from AbstractFormFieldViewHelper
 injectConfigurationManager (\TYPO3\CMS\Extbase\Configuration\ConfigurationManagerInterface $configurationManager)
 
 initializeArguments ()
 
 getRespectSubmittedDataValue ()
 
 setRespectSubmittedDataValue ($respectSubmittedDataValue)
 
- Public Member Functions inherited from AbstractFormViewHelper
 injectPersistenceManager (\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface $persistenceManager)
 
- Public Member Functions inherited from AbstractTagBasedViewHelper
 __construct ()
 
 initializeArguments ()
 
 initialize ()
 
- 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 Member Functions

 getUploadedResource ()
 
- Protected Member Functions inherited from AbstractFormFieldViewHelper
 getName ()
 
 getRequest ()
 
 getNameWithoutPrefix ()
 
 getValueAttribute ()
 
 getValueFromSubmittedFormData ($value)
 
 convertToPlainValue ($value)
 
 hasMappingErrorOccurred ()
 
 getLastSubmittedFormData ()
 
 addAdditionalIdentityPropertiesIfNeeded ()
 
 getPropertyValue ()
 
 isObjectAccessorMode ()
 
 setErrorClassAttribute ()
 
 getMappingResultsForProperty ()
 
 renderHiddenFieldForEmptyValue ()
 
- Protected Member Functions inherited from AbstractFormViewHelper
 prefixFieldName ($fieldName)
 
 renderHiddenIdentityField ($object, $name)
 
 registerFieldNameForFormTokenGeneration ($fieldName)
 
- Protected Member Functions inherited from AbstractTagBasedViewHelper
 registerTagAttribute ($name, $type, $description, $required=false, $default=null)
 
 registerUniversalTagAttributes ()
 
- Protected Member Functions inherited from AbstractViewHelper
 callRenderMethod ()
 
 getLogger ()
 
 registerRenderMethodArguments ()
 

Protected Attributes

 $hashService
 
 $propertyMapper
 
- Protected Attributes inherited from UploadViewHelper
 $tagName = 'input'
 
- Protected Attributes inherited from AbstractFormFieldViewHelper
 $configurationManager
 
 $respectSubmittedDataValue = false
 
- Protected Attributes inherited from AbstractFormViewHelper
 $persistenceManager
 
- Protected Attributes inherited from AbstractTagBasedViewHelper
 $tagName = 'div'
 
 $tag
 
 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Detailed Description

This ViewHelper makes the specified Image object available for its childNodes. In case the form is redisplayed because of validation errors, a previously uploaded image will be correctly used.

Scope: frontend

Definition at line 32 of file UploadedResourceViewHelper.php.

Member Function Documentation

getUploadedResource ( )
protected

Return a previously uploaded resource. Return NULL if errors occurred during property mapping for this property.

Returns
null|FileReference

Definition at line 122 of file UploadedResourceViewHelper.php.

References AbstractFormFieldViewHelper\getMappingResultsForProperty(), and AbstractFormFieldViewHelper\getValueAttribute().

Referenced by UploadedResourceViewHelper\render().

initializeArguments ( )

Initialize the arguments.

Returns
void

Definition at line 71 of file UploadedResourceViewHelper.php.

injectHashService ( \TYPO3\CMS\Extbase\Security\Cryptography\HashService  $hashService)
Parameters
HashService$hashService
Returns
void

Definition at line 50 of file UploadedResourceViewHelper.php.

References UploadedResourceViewHelper\$hashService.

injectPropertyMapper ( \TYPO3\CMS\Extbase\Property\PropertyMapper  $propertyMapper)
Parameters
\TYPO3\CMS\Extbase\Property\PropertyMapper$propertyMapper
Returns
void

Definition at line 60 of file UploadedResourceViewHelper.php.

References UploadedResourceViewHelper\$propertyMapper.

Member Data Documentation

$hashService
protected
$propertyMapper
protected