FileHandlingServiceConfiguration
Only to be used within Extbase, not part of TYPO3 Core API.
Table of Contents
Properties
- $fileUploadConfigurations : ObjectStorage<string|int, FileUploadConfiguration>
- $fileUploadDeletionConfigurations : ObjectStorage<string|int, FileUploadDeletionConfiguration>
Methods
- __construct() : mixed
- addFileUploadConfiguration() : void
- getFileUploadConfigurationForProperty() : FileUploadConfiguration|null
- Returns the FileUploadConfiguration for the given propertyName
- getFileUploadConfigurations() : ObjectStorage
- getFileUploadDeletionConfigurationForProperty() : FileUploadDeletionConfiguration|null
- Returns the FileUploadDeletionConfiguration for the given propertyName
- getFileUploadDeletionConfigurations() : ObjectStorage
- Returns all file deletion configurations
- hasfileUploadConfigurations() : bool
- registerFileDeletion() : void
- Registers a file deletion for the given property and file reference uid
- validateFileOperations() : Result
- Validates file operations for the given argument by checking file upload and file deletion configurations and returning the validation result.
Properties
$fileUploadConfigurations
protected
ObjectStorage<string|int, FileUploadConfiguration>
$fileUploadConfigurations
$fileUploadDeletionConfigurations
protected
ObjectStorage<string|int, FileUploadDeletionConfiguration>
$fileUploadDeletionConfigurations
Methods
__construct()
public
__construct() : mixed
addFileUploadConfiguration()
public
addFileUploadConfiguration(FileUploadConfiguration $configuration) : void
Parameters
- $configuration : FileUploadConfiguration
getFileUploadConfigurationForProperty()
Returns the FileUploadConfiguration for the given propertyName
public
getFileUploadConfigurationForProperty(string $propertyName) : FileUploadConfiguration|null
Parameters
- $propertyName : string
Return values
FileUploadConfiguration|nullgetFileUploadConfigurations()
public
getFileUploadConfigurations() : ObjectStorage
Return values
ObjectStoragegetFileUploadDeletionConfigurationForProperty()
Returns the FileUploadDeletionConfiguration for the given propertyName
public
getFileUploadDeletionConfigurationForProperty(string $propertyName) : FileUploadDeletionConfiguration|null
Parameters
- $propertyName : string
Return values
FileUploadDeletionConfiguration|nullgetFileUploadDeletionConfigurations()
Returns all file deletion configurations
public
getFileUploadDeletionConfigurations() : ObjectStorage
Return values
ObjectStoragehasfileUploadConfigurations()
public
hasfileUploadConfigurations() : bool
Return values
boolregisterFileDeletion()
Registers a file deletion for the given property and file reference uid
public
registerFileDeletion(string $property, int $fileReferenceUid) : void
Parameters
- $property : string
- $fileReferenceUid : int
validateFileOperations()
Validates file operations for the given argument by checking file upload and file deletion configurations and returning the validation result.
public
validateFileOperations(Argument $argument) : Result
Parameters
- $argument : Argument