ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
Class PreProcessorManager. More...
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\MetaData\Repository\Validation\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\MetaData\Repository\Validation\Processor\PreProcessorManagerImpl.
ILIAS\MetaData\Repository\Validation\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\MetaData\Repository\Validation\Processor\PreProcessorManagerImpl.