PHP 클래스 Neos\FluidAdaptor\ViewHelpers\FormViewHelper

= Examples = ...
...
...
...
...
...
A form where the value of {customer.name} is automatically inserted inside the textbox; the name of the textbox is set to match the property name.
상속: extends Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$authenticationManager Neos\Flow\Security\Authentication\AuthenticationManagerInterface
$formActionUri string
$hashService Neos\Flow\Security\Cryptography\HashService
$mvcPropertyMappingConfigurationService Neos\Flow\Mvc\Controller\MvcPropertyMappingConfigurationService
$securityContext Neos\Flow\Security\Context
$tagName string

공개 메소드들

메소드 설명
initializeArguments ( ) : void Initialize arguments.
render ( string $action = null, array $arguments = [], string $controller = null, string $package = null, string $subpackage = null, mixed $object = null, string $section = '', string $format = '', array $additionalParams = [], boolean $absolute = false, boolean $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], string $fieldNamePrefix = null, string $actionUri = null, string $objectName = null, boolean $useParentRequest = false ) : string Render the form.

보호된 메소드들

메소드 설명
addEmptyHiddenFieldNamesToViewHelperVariableContainer ( ) : void Adds a container for rendered hidden field names for empty values to the ViewHelperVariableContainer
addFieldNamePrefixToViewHelperVariableContainer ( ) : void Adds the field name prefix to the ViewHelperVariableContainer
addFormFieldNamesToViewHelperVariableContainer ( ) : void Adds a container for form field names to the ViewHelperVariableContainer
addFormObjectNameToViewHelperVariableContainer ( ) : void Adds the form object name to the ViewHelperVariableContainer if "objectName" argument or "name" attribute is specified.
addFormObjectToViewHelperVariableContainer ( ) : void Adds the object that is bound to this form to the ViewHelperVariableContainer if the formObject attribute is specified.
getDefaultFieldNamePrefix ( ) : string Retrieves the default field name prefix for this form
getFieldNamePrefix ( ) : string Get the field name prefix
getFormActionUri ( ) : string Returns the action URI of the form tag.
getFormObjectName ( ) : string Returns the name of the object that is bound to this form.
removeEmptyHiddenFieldNamesFromViewHelperVariableContainer ( ) : void Removes container for rendered hidden field names for empty values from ViewHelperVariableContainer
removeFieldNamePrefixFromViewHelperVariableContainer ( ) : void Removes field name prefix from the ViewHelperVariableContainer
removeFormFieldNamesFromViewHelperVariableContainer ( ) : void Removes the container for form field names from the ViewHelperVariableContainer
removeFormObjectFromViewHelperVariableContainer ( ) : void Removes the form object from the ViewHelperVariableContainer.
removeFormObjectNameFromViewHelperVariableContainer ( ) : void Removes the form object name from the ViewHelperVariableContainer.
renderAdditionalIdentityFields ( ) : string Render additional identity fields which were registered by form elements.
renderCsrfTokenField ( ) : string Render the a hidden field with a CSRF token
renderEmptyHiddenFields ( ) : string Renders all empty hidden fields that have been added to ViewHelperVariableContainer
renderHiddenActionUriQueryParameters ( ) : string Render hidden form fields for query parameters from action URI.
renderHiddenReferrerFields ( ) : string Renders hidden form fields for referrer information about the current controller and action.
renderTrustedPropertiesField ( ) : string Render the request hash field

메소드 상세

addEmptyHiddenFieldNamesToViewHelperVariableContainer() 보호된 메소드

Adds a container for rendered hidden field names for empty values to the ViewHelperVariableContainer
또한 보기: Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormFieldViewHelper::renderHiddenFieldForEmptyValue()

addFieldNamePrefixToViewHelperVariableContainer() 보호된 메소드

Adds the field name prefix to the ViewHelperVariableContainer

addFormFieldNamesToViewHelperVariableContainer() 보호된 메소드

Adds a container for form field names to the ViewHelperVariableContainer

addFormObjectNameToViewHelperVariableContainer() 보호된 메소드

Adds the form object name to the ViewHelperVariableContainer if "objectName" argument or "name" attribute is specified.

addFormObjectToViewHelperVariableContainer() 보호된 메소드

Adds the object that is bound to this form to the ViewHelperVariableContainer if the formObject attribute is specified.

getDefaultFieldNamePrefix() 보호된 메소드

Retrieves the default field name prefix for this form
protected getDefaultFieldNamePrefix ( ) : string
리턴 string default field name prefix

getFieldNamePrefix() 보호된 메소드

Get the field name prefix
protected getFieldNamePrefix ( ) : string
리턴 string

getFormActionUri() 보호된 메소드

If the argument "actionUri" is specified, this will be returned Otherwise this creates the action URI using the UriBuilder
protected getFormActionUri ( ) : string
리턴 string

getFormObjectName() 보호된 메소드

If the "objectName" argument has been specified, this is returned. Otherwise the name attribute of this form. If neither objectName nor name arguments have been set, NULL is returned.
protected getFormObjectName ( ) : string
리턴 string specified Form name or NULL if neither $objectName nor $name arguments have been specified

initializeArguments() 공개 메소드

Initialize arguments.
public initializeArguments ( ) : void
리턴 void

removeEmptyHiddenFieldNamesFromViewHelperVariableContainer() 보호된 메소드

Removes container for rendered hidden field names for empty values from ViewHelperVariableContainer
또한 보기: Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormFieldViewHelper::renderHiddenFieldForEmptyValue()

removeFieldNamePrefixFromViewHelperVariableContainer() 보호된 메소드

Removes field name prefix from the ViewHelperVariableContainer

removeFormFieldNamesFromViewHelperVariableContainer() 보호된 메소드

Removes the container for form field names from the ViewHelperVariableContainer

removeFormObjectFromViewHelperVariableContainer() 보호된 메소드

Removes the form object from the ViewHelperVariableContainer.

removeFormObjectNameFromViewHelperVariableContainer() 보호된 메소드

Removes the form object name from the ViewHelperVariableContainer.

render() 공개 메소드

Render the form.
public render ( string $action = null, array $arguments = [], string $controller = null, string $package = null, string $subpackage = null, mixed $object = null, string $section = '', string $format = '', array $additionalParams = [], boolean $absolute = false, boolean $addQueryString = false, array $argumentsToBeExcludedFromQueryString = [], string $fieldNamePrefix = null, string $actionUri = null, string $objectName = null, boolean $useParentRequest = false ) : string
$action string target action
$arguments array additional arguments
$controller string name of target controller
$package string name of target package
$subpackage string name of target subpackage
$object mixed object to use for the form. Use in conjunction with the "property" attribute on the sub tags
$section string The anchor to be added to the action URI (only active if $actionUri is not set)
$format string The requested format (e.g. ".html") of the target page (only active if $actionUri is not set)
$additionalParams array additional action URI query parameters that won't be prefixed like $arguments (overrule $arguments) (only active if $actionUri is not set)
$absolute boolean If set, an absolute action URI is rendered (only active if $actionUri is not set)
$addQueryString boolean If set, the current query parameters will be kept in the action URI (only active if $actionUri is not set)
$argumentsToBeExcludedFromQueryString array arguments to be removed from the action URI. Only active if $addQueryString = TRUE and $actionUri is not set
$fieldNamePrefix string Prefix that will be added to all field names within this form
$actionUri string can be used to overwrite the "action" attribute of the form tag
$objectName string name of the object that is bound to this form. If this argument is not specified, the name attribute of this form is used to determine the FormObjectName
$useParentRequest boolean If set, the parent Request will be used instead ob the current one
리턴 string rendered form

renderAdditionalIdentityFields() 보호된 메소드

This happens if a form field is defined like property="bla.blubb" - then we might need an identity property for the sub-object "bla".
protected renderAdditionalIdentityFields ( ) : string
리턴 string HTML-string for the additional identity properties

renderCsrfTokenField() 보호된 메소드

Render the a hidden field with a CSRF token
protected renderCsrfTokenField ( ) : string
리턴 string the CSRF token field

renderEmptyHiddenFields() 보호된 메소드

Renders all empty hidden fields that have been added to ViewHelperVariableContainer
또한 보기: Neos\FluidAdaptor\ViewHelpers\Form\AbstractFormFieldViewHelper::renderHiddenFieldForEmptyValue()
protected renderEmptyHiddenFields ( ) : string
리턴 string

renderHiddenActionUriQueryParameters() 보호된 메소드

This is only needed if the form method is GET.
protected renderHiddenActionUriQueryParameters ( ) : string
리턴 string Hidden fields for query parameters from action URI

renderHiddenReferrerFields() 보호된 메소드

Renders hidden form fields for referrer information about the current controller and action.
protected renderHiddenReferrerFields ( ) : string
리턴 string Hidden fields with referrer information

renderTrustedPropertiesField() 보호된 메소드

Render the request hash field
protected renderTrustedPropertiesField ( ) : string
리턴 string the hmac field

프로퍼티 상세

$authenticationManager 보호되어 있는 프로퍼티

protected AuthenticationManagerInterface,Neos\Flow\Security\Authentication $authenticationManager
리턴 Neos\Flow\Security\Authentication\AuthenticationManagerInterface

$formActionUri 보호되어 있는 프로퍼티

protected string $formActionUri
리턴 string

$hashService 보호되어 있는 프로퍼티

protected HashService,Neos\Flow\Security\Cryptography $hashService
리턴 Neos\Flow\Security\Cryptography\HashService

$mvcPropertyMappingConfigurationService 보호되어 있는 프로퍼티

protected MvcPropertyMappingConfigurationService,Neos\Flow\Mvc\Controller $mvcPropertyMappingConfigurationService
리턴 Neos\Flow\Mvc\Controller\MvcPropertyMappingConfigurationService

$securityContext 보호되어 있는 프로퍼티

protected Context,Neos\Flow\Security $securityContext
리턴 Neos\Flow\Security\Context

$tagName 보호되어 있는 프로퍼티

protected string $tagName
리턴 string