PHP 클래스 Neos\FluidAdaptor\ViewHelpers\Form\UploadViewHelper

Make sure to set enctype="multipart/form-data" on the form! If a file has been uploaded successfully and the form is re-displayed due to validation errors, this ViewHelper will render hidden fields that contain the previously generated resource so you won't have to upload the file again. You can use a separate ViewHelper to display previously uploaded resources in order to remove/replace them. = Examples =
상속: extends AbstractFormFieldViewHelper
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$propertyMapper Neos\Flow\Property\PropertyMapper
$tagName string

공개 메소드들

메소드 설명
initializeArguments ( ) : void
render ( ) : string Renders the upload field.

보호된 메소드들

메소드 설명
getNameWithoutPrefix ( ) : string Get the name of this form element, without prefix.
getUploadedResource ( ) : PersistentResource Returns a previously uploaded resource, or the resource specified via "value" argument if no resource has been uploaded before If errors occurred during property mapping for this property, NULL is returned

메소드 상세

getNameWithoutPrefix() 보호된 메소드

Note: This is overridden here because the "value" argument should not have an effect on the name attribute of the tag In the original implementation, setting a value will influence the name, @see AbstractFormFieldViewHelper::getNameWithoutPrefix()
protected getNameWithoutPrefix ( ) : string
리턴 string name

getUploadedResource() 보호된 메소드

Returns a previously uploaded resource, or the resource specified via "value" argument if no resource has been uploaded before If errors occurred during property mapping for this property, NULL is returned
protected getUploadedResource ( ) : PersistentResource
리턴 Neos\Flow\ResourceManagement\PersistentResource or NULL if no resource was uploaded and the "value" argument is not set

initializeArguments() 공개 메소드

public initializeArguments ( ) : void
리턴 void

render() 공개 메소드

Renders the upload field.
public render ( ) : string
리턴 string

프로퍼티 상세

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

protected PropertyMapper,Neos\Flow\Property $propertyMapper
리턴 Neos\Flow\Property\PropertyMapper

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

protected string $tagName
리턴 string