ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\MetaData\Repository\Validation\Processor\PreProcessorManager Interface Reference

Class PreProcessorManager. More...

+ Inheritance diagram for ILIAS\MetaData\Repository\Validation\Processor\PreProcessorManager:
+ Collaboration diagram for ILIAS\MetaData\Repository\Validation\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...
 

Detailed Description

Class PreProcessorManager.

The pre processor manager is used to create pools of processors and invoke them for a particular stream.

Author
Nicolas Schäfli ns@st.nosp@m.uder.nosp@m.-raim.nosp@m.ann..nosp@m.ch
Since
5.3
Version
1.0

Definition at line 37 of file PreProcessorManager.php.

Member Function Documentation

◆ process()

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.

Parameters
FileStream$streamThe stream of the current file.
Metadata$metadataThe metadata of the current file.
Since
5.3

Implemented in ILIAS\MetaData\Repository\Validation\Processor\PreProcessorManagerImpl.

◆ with()

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.

Parameters
PreProcessor$processorThe processor which should be added.
Since
5.3

Implemented in ILIAS\MetaData\Repository\Validation\Processor\PreProcessorManagerImpl.


The documentation for this interface was generated from the following file: