Method |
Description |
|
addAdditionalIdentityPropertiesIfNeeded ( ) : void |
Add additional identity properties in case the current property is hierarchical (of the form "bla.blubb"). |
|
getLastSubmittedFormData ( ) : mixed |
Get the form data which has last been submitted; only returns valid data in case
a property mapping error has occurred. Check with hasMappingErrorOccurred() before! |
|
getMappingResultsForProperty ( ) : Neos\Error\Messages\Result |
Get errors for the property and form name of this view helper |
|
getName ( ) : string |
Get the name of this form element. |
|
getNameWithoutPrefix ( ) : string |
Get the name of this form element, without prefix. |
|
getPropertyPath ( ) : string |
Returns the "absolute" property path of the property bound to this ViewHelper. |
|
getPropertyValue ( ) : mixed |
Get the current property of the object bound to this form. |
|
getRequest ( ) : ActionRequest |
Shortcut for retrieving the request from the controller context |
|
getValue ( boolean $convertObjects = true ) : mixed |
Get the value of this form element. |
|
getValueAttribute ( boolean $ignoreSubmittedFormData = false ) : mixed |
Returns the current value of this Form ViewHelper and converts it to an identifier string in case it's an object
The value is determined as follows:
* If property mapping errors occurred and the form is re-displayed, the *last submitted* value is returned
* Else the bound property is returned (only in objectAccessor-mode)
* As fallback the "value" argument of this ViewHelper is used |
|
hasMappingErrorOccured ( ) : boolean |
|
|
hasMappingErrorOccurred ( ) : boolean |
Checks if a property mapping error has occurred in the last request. |
|
isObjectAccessorMode ( ) : boolean |
Internal method which checks if we should evaluate a domain object or just output arguments['name'] and arguments['value'] |
|
renderHiddenFieldForEmptyValue ( ) : void |
Renders a hidden field with the same name as the element, to make sure the empty value is submitted
in case nothing is selected. This is needed for checkbox and multiple select fields |
|
setErrorClassAttribute ( ) : void |
Add an CSS class if this view helper has errors |
|