TYPO3CMS  8
 All Classes Namespaces Files Functions Variables Pages
AbstractFormViewHelper Class Reference
Inheritance diagram for AbstractFormViewHelper:
AbstractTagBasedViewHelper AbstractViewHelper DownloadExtensionViewHelper AbstractFormFieldViewHelper FormViewHelper ButtonViewHelper CheckboxViewHelper HiddenViewHelper PasswordViewHelper RadioViewHelper OptgroupViewHelper OptionViewHelper SelectViewHelper SubmitViewHelper TextareaViewHelper TextfieldViewHelper UploadViewHelper DatePickerViewHelper TimePickerViewHelper FormViewHelper

Public Member Functions

 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

 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

 $persistenceManager
 
- Protected Attributes inherited from AbstractTagBasedViewHelper
 $tagName = 'div'
 
 $tag
 
 $escapeOutput = false
 
- Protected Attributes inherited from AbstractViewHelper
 $controllerContext
 
 $objectManager
 

Detailed Description

Abstract Form View Helper. 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.

Definition at line 23 of file AbstractFormViewHelper.php.

Member Function Documentation

injectPersistenceManager ( \TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface  $persistenceManager)
Parameters
\TYPO3\CMS\Extbase\Persistence\PersistenceManagerInterface$persistenceManager

Definition at line 33 of file AbstractFormViewHelper.php.

References AbstractFormViewHelper\$persistenceManager.

prefixFieldName (   $fieldName)
protected

Prefixes / namespaces the given name with the form field prefix

Parameters
string$fieldNamefield name to be prefixed
Returns
string namespaced field name

Definition at line 44 of file AbstractFormViewHelper.php.

Referenced by AbstractFormFieldViewHelper\getName(), AbstractFormViewHelper\renderHiddenIdentityField(), FormViewHelper\renderHiddenReferrerFields(), FormViewHelper\renderRequestHashField(), and FormViewHelper\renderTrustedPropertiesField().

renderHiddenIdentityField (   $object,
  $name 
)
protected

Renders a hidden form field containing the technical identity of the given object.

Parameters
object$objectObject to create the identity field for
string$nameName
Returns
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
See also
::setValue()

Definition at line 72 of file AbstractFormViewHelper.php.

References AbstractFormViewHelper\prefixFieldName(), and AbstractFormViewHelper\registerFieldNameForFormTokenGeneration().

Referenced by AbstractFormFieldViewHelper\addAdditionalIdentityPropertiesIfNeeded(), and FormViewHelper\render().

Member Data Documentation

$persistenceManager
protected