|
| __construct ($options=[]) |
| Constructor for Http File Transfers.
|
|
| setValidators (array $validators, $files=null) |
| Sets a validator for the class, erasing all previous set.
|
|
| removeValidator ($name) |
| Remove an individual validator.
|
|
| clearValidators () |
| Clear the validators.
|
|
| send ($options=null) |
| Send the file to the client (Download)
|
|
| isValid ($files=null) |
| Checks if the files are valid.
|
|
| receive ($files=null) |
| Receive the file from the client (Upload)
|
|
| isSent ($files=null) |
| Checks if the file was already sent.
|
|
| isReceived ($files=null) |
| Checks if the file was already received.
|
|
| isFiltered ($files=null) |
| Checks if the file was already filtered.
|
|
| isUploaded ($files=null) |
| Has a file been uploaded ?
|
|
| send ($options=null) |
| Send file.
|
|
| receive ($options=null) |
| Receive file.
|
|
| isSent ($files=null) |
| Is file sent?
|
|
| isReceived ($files=null) |
| Is file received?
|
|
| isUploaded ($files=null) |
| Has a file been uploaded ?
|
|
| isFiltered ($files=null) |
| Has the file been filtered ?
|
|
| setFilterManager (FilterPluginManager $filterManager) |
| Adds one or more files.
|
|
| getFilterManager () |
| Get the filter plugin manager instance.
|
|
| setValidatorManager (ValidatorPluginManager $validatorManager) |
| Set the validator plugin manager instance.
|
|
| getValidatorManager () |
| Get the validator plugin manager instance.
|
|
| addValidator ($validator, $breakChainOnFailure=false, $options=null, $files=null) |
| Adds a new validator for this class.
|
|
| addValidators (array $validators, $files=null) |
| Add Multiple validators at once.
|
|
| setValidators (array $validators, $files=null) |
| Sets a validator for the class, erasing all previous set.
|
|
| hasValidator ($name) |
| Determine if a given validator has already been registered.
|
|
| getValidator ($name) |
| Retrieve individual validator.
|
|
| getValidators ($files=null) |
| Returns all set validators.
|
|
| removeValidator ($name) |
| Remove an individual validator.
|
|
| clearValidators () |
| Remove all validators.
|
|
| setOptions ($options=[], $files=null) |
| Sets Options for adapters.
|
|
| getOptions ($files=null) |
| Returns set options for adapters or files.
|
|
| isValid ($files=null) |
| Checks if the files are valid.
|
|
| getMessages () |
| Returns found validation messages.
|
|
| getErrors () |
| Retrieve error codes.
|
|
| hasErrors () |
| Are there errors registered?
|
|
| addFilter ($filter, $options=null, $files=null) |
| Adds a new filter for this class.
|
|
| addFilters (array $filters, $files=null) |
| Add Multiple filters at once.
|
|
| setFilters (array $filters, $files=null) |
| Sets a filter for the class, erasing all previous set.
|
|
| hasFilter ($name) |
| Determine if a given filter has already been registered.
|
|
| getFilter ($name) |
| Retrieve individual filter.
|
|
| getFilters ($files=null) |
| Returns all set filters.
|
|
| removeFilter ($name) |
| Remove an individual filter.
|
|
| clearFilters () |
| Remove all filters.
|
|
| getFileName ($file=null, $path=true) |
| Retrieves the filename of transferred files.
|
|
| getFileInfo ($file=null) |
| Retrieve additional internal file informations for files.
|
|
| setDestination ($destination, $files=null) |
| Sets a new destination for the given files.
|
|
| getDestination ($files=null) |
| Retrieve destination directory value.
|
|
| setTranslator (Translator $translator=null, $textDomain=null) |
| Sets translator to use in helper.
|
|
| getTranslator () |
| Retrieve localization translator object.
|
|
| hasTranslator () |
| Checks if the helper has a translator.
|
|
| setTranslatorEnabled ($flag=true) |
| Indicate whether or not translation should be enabled.
|
|
| isTranslatorEnabled () |
| Is translation enabled?
|
|
| setTranslatorTextDomain ($textDomain= 'default') |
| Set translation text domain.
|
|
| getTranslatorTextDomain () |
| Return the translation text domain.
|
|
| getHash ($hash= 'crc32', $files=null) |
| Returns the hash for a given file.
|
|
| getFileSize ($files=null) |
| Returns the real filesize of the file.
|
|
| getMimeType ($files=null) |
| Returns the real mimetype of the file Uses fileinfo, when not available mime_magic and as last fallback a manual given mimetype.
|
|
| setTranslator (TranslatorInterface $translator=null, $textDomain=null) |
| Sets translator to use in helper.
|
|
File transfer adapter class for the HTTP protocol.
- Deprecated:
- since 2.7.0, and scheduled for removal with 3.0.0