PHP Class Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormViewHelper

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.
Inheritance: extends Neos\FluidAdaptor\Core\ViewHelper\AbstractTagBasedViewHelper
Show file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface

Public Methods

Method Description
injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void Injects the Flow Persistence Manager

Protected Methods

Method Description
prefixFieldName ( string $fieldName ) : string Prefixes / namespaces the given name with the form field prefix
registerFieldNameForFormTokenGeneration ( string $fieldName ) : void Register a field name for inclusion in the HMAC / Form Token generation
renderHiddenIdentityField ( object $object, string $name ) : string Renders a hidden form field containing the technical identity of the given object.

Method Details

injectPersistenceManager() public method

Injects the Flow Persistence Manager
public injectPersistenceManager ( Neos\Flow\Persistence\PersistenceManagerInterface $persistenceManager ) : void
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
return void

prefixFieldName() protected method

Prefixes / namespaces the given name with the form field prefix
protected prefixFieldName ( string $fieldName ) : string
$fieldName string field name to be prefixed
return string namespaced field name

registerFieldNameForFormTokenGeneration() protected method

Register a field name for inclusion in the HMAC / Form Token generation
protected registerFieldNameForFormTokenGeneration ( string $fieldName ) : void
$fieldName string name of the field to register
return void

renderHiddenIdentityField() protected method

Renders a hidden form field containing the technical identity of the given object.
See also: Neos\Flow\Mvc\Controller\Argument::setValue()
protected renderHiddenIdentityField ( object $object, string $name ) : string
$object object Object to create the identity field for
$name string Name
return string A hidden field containing the Identity (UUID in Flow) of the given object or NULL if the object is unknown to the persistence framework

Property Details

$persistenceManager protected property

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
return Neos\Flow\Persistence\PersistenceManagerInterface