AbstractFormViewHelper extends AbstractTagBasedViewHelper
This class is the implementation of a Fluid ViewHelper.
View this class in the TYPO3 ViewHelper reference: <f:form.abstractform>
Abstract Form ViewHelper. Bundles functionality related to direct property access of objects in other Form ViewHelpers.
If you set the "property" attribute to the name of the property to resolve from the object, this class will automatically set the name and value of a form element.
Table of Contents
Properties
Methods
- injectPersistenceManager() : mixed
- prefixFieldName() : string
- Prefixes / namespaces the given name with the form field prefix
- registerFieldNameForFormTokenGeneration() : mixed
- Register a field name for inclusion in the HMAC / Form Token generation
- renderHiddenIdentityField() : string
- Renders a hidden form field containing the technical identity of the given object.
Properties
$persistenceManager
protected
PersistenceManagerInterface
$persistenceManager
Methods
injectPersistenceManager()
public
injectPersistenceManager(PersistenceManagerInterface $persistenceManager) : mixed
Parameters
- $persistenceManager : PersistenceManagerInterface
prefixFieldName()
Prefixes / namespaces the given name with the form field prefix
protected
prefixFieldName(string $fieldName) : string
Parameters
- $fieldName : string
-
field name to be prefixed
Return values
string —namespaced field name
registerFieldNameForFormTokenGeneration()
Register a field name for inclusion in the HMAC / Form Token generation
protected
registerFieldNameForFormTokenGeneration(string $fieldName) : mixed
Parameters
- $fieldName : string
-
name of the field to register
renderHiddenIdentityField()
Renders a hidden form field containing the technical identity of the given object.
protected
renderHiddenIdentityField(object $object, string $name) : string
Parameters
- $object : object
-
Object to create the identity field for
- $name : string
-
Name
Tags
Return values
string —A hidden field containing the Identity (UID in TYPO3 Flow, uid in Extbase) of the given object or NULL if the object is unknown to the persistence framework