|
ILIAS
trunk Revision v12.0_alpha-377-g3641b37b9db
|
Class PreProcessorManager. More...
Inheritance diagram for ILIAS\FileUpload\Processor\PreProcessorManager:
Collaboration diagram for ILIAS\FileUpload\Processor\PreProcessorManager:Public Member Functions | |
| with (PreProcessor $processor) | |
| Adds the processor to the current manager. More... | |
| process (FileStream $stream, Metadata $metadata) | |
| Invokes the registered processors until one rejects the file or fails. More... | |
Class PreProcessorManager.
The pre processor manager is used to create pools of processors and invoke them for a particular stream.
Definition at line 37 of file PreProcessorManager.php.
| ILIAS\FileUpload\Processor\PreProcessorManager::process | ( | FileStream | $stream, |
| Metadata | $metadata | ||
| ) |
Invokes the registered processors until one rejects the file or fails.
The file must be discarded if this method returns a rejected status.
| FileStream | $stream | The stream of the current file. |
| Metadata | $metadata | The metadata of the current file. |
Implemented in ILIAS\FileUpload\Processor\PreProcessorManagerImpl.
| ILIAS\FileUpload\Processor\PreProcessorManager::with | ( | PreProcessor | $processor | ) |
Adds the processor to the current manager.
It it possible to add an arbitrary number of processors.
| PreProcessor | $processor | The processor which should be added. |
Implemented in ILIAS\FileUpload\Processor\PreProcessorManagerImpl.