ILIAS
release_8 Revision v8.19
|
Public Member Functions | |
__construct (ilVirusScanner $scanner) | |
process (FileStream $stream, Metadata $metadata) | |
This method gets invoked by the file upload service to process the file with the help of the processor. More... | |
Protected Attributes | |
ilVirusScanner | $scanner |
Definition at line 26 of file class.ilVirusScannerPreProcessor.php.
ilVirusScannerPreProcessor::__construct | ( | ilVirusScanner | $scanner | ) |
Definition at line 30 of file class.ilVirusScannerPreProcessor.php.
References $scanner.
ilVirusScannerPreProcessor::process | ( | FileStream | $stream, |
Metadata | $metadata | ||
) |
This method gets invoked by the file upload service to process the file with the help of the processor.
If the return value is REJECTED, no further invocations of processors are done for the rejected file.
If the processor fails or returns an unexpected value, the file gets automatically rejected because the file could be dangerous to ILIAS.
FileStream | $stream | The stream of the file. |
Metadata | $metadata | The meta data of the uploaded file. |
Implements ILIAS\FileUpload\Processor\PreProcessor.
Definition at line 35 of file class.ilVirusScannerPreProcessor.php.
|
protected |
Definition at line 28 of file class.ilVirusScannerPreProcessor.php.
Referenced by __construct().